# HG changeset patch # User Mark Edgington # Date 2009-01-03 19:33:19 # Node ID b663b5563de701ff2740d1400c27d262087678d7 # Parent fa23d169a89520b5311d63dc25714a51d4d26c8a hgweb: allow static content when deny_read denies access diff --git a/mercurial/hgweb/hgweb_mod.py b/mercurial/hgweb/hgweb_mod.py --- a/mercurial/hgweb/hgweb_mod.py +++ b/mercurial/hgweb/hgweb_mod.py @@ -165,8 +165,9 @@ class hgweb(object): ctype = tmpl('mimetype', encoding=self.encoding) ctype = templater.stringify(ctype) - # check allow_read / deny_read config options - self.check_perm(req, None) + # check read permissions non-static content + if cmd != 'static': + self.check_perm(req, None) if cmd == '': req.form['cmd'] = [tmpl.cache['default']]