Mercurial > hg-stable
changeset 7562:b663b5563de7
hgweb: allow static content when deny_read denies access
author | Mark Edgington <edgimar@gmail.com> |
---|---|
date | Sat, 03 Jan 2009 20:33:19 +0100 |
parents | fa23d169a895 |
children | bbcd2dea19fe |
files | mercurial/hgweb/hgweb_mod.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/hgweb/hgweb_mod.py Sat Jan 03 20:33:37 2009 +0100 +++ b/mercurial/hgweb/hgweb_mod.py Sat Jan 03 20:33:19 2009 +0100 @@ -165,8 +165,9 @@ 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']]