mercurial/hgweb/hgwebdir_mod.py
changeset 7575 3ccaefc84f45
parent 7560 305efd897a63
child 7637 1d54e2f6c0b7
--- a/mercurial/hgweb/hgwebdir_mod.py	Sat Jan 03 20:20:40 2009 +0100
+++ b/mercurial/hgweb/hgwebdir_mod.py	Sat Jan 03 21:44:15 2009 +0100
@@ -102,11 +102,11 @@
 
         user = req.env.get('REMOTE_USER')
 
-        deny_read = ui.configlist('web', 'deny_read', default=None, untrusted=True)
+        deny_read = ui.configlist('web', 'deny_read', untrusted=True)
         if deny_read and (not user or deny_read == ['*'] or user in deny_read):
             return False
 
-        allow_read = ui.configlist('web', 'allow_read', default=None, untrusted=True)
+        allow_read = ui.configlist('web', 'allow_read', untrusted=True)
         # by default, allow reading if no allow_read option has been set
         if (not allow_read) or (allow_read == ['*']) or (user in allow_read):
             return True