Mercurial > public > mercurial-scm > hg
comparison mercurial/hgweb/hgweb_mod.py @ 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 | 526c40a74bd0 |
children | bbcd2dea19fe |
comparison
equal
deleted
inserted
replaced
7561:fa23d169a895 | 7562:b663b5563de7 |
---|---|
163 try: | 163 try: |
164 tmpl = self.templater(req) | 164 tmpl = self.templater(req) |
165 ctype = tmpl('mimetype', encoding=self.encoding) | 165 ctype = tmpl('mimetype', encoding=self.encoding) |
166 ctype = templater.stringify(ctype) | 166 ctype = templater.stringify(ctype) |
167 | 167 |
168 # check allow_read / deny_read config options | 168 # check read permissions non-static content |
169 self.check_perm(req, None) | 169 if cmd != 'static': |
170 self.check_perm(req, None) | |
170 | 171 |
171 if cmd == '': | 172 if cmd == '': |
172 req.form['cmd'] = [tmpl.cache['default']] | 173 req.form['cmd'] = [tmpl.cache['default']] |
173 cmd = req.form['cmd'][0] | 174 cmd = req.form['cmd'][0] |
174 | 175 |