diff mercurial/hgweb/hgweb_mod.py @ 2501:b73552a00b20

Make "[web] allow_push, deny_push" and "[http_proxy] no" use ui.configlist.
author Thomas Arendsen Hein <thomas@intevation.de>
date Mon, 26 Jun 2006 16:47:24 +0200
parents 76ff5efe8181
children 6350b01d173f
line wrap: on
line diff
--- a/mercurial/hgweb/hgweb_mod.py
+++ b/mercurial/hgweb/hgweb_mod.py
@@ -845,15 +845,11 @@ class hgweb(object):
 
         user = req.env.get('REMOTE_USER')
 
-        deny = self.repo.ui.config('web', 'deny_' + op, '')
-        deny = deny.replace(',', ' ').split()
-
+        deny = self.repo.ui.configlist('web', 'deny_' + op)
         if deny and (not user or deny == ['*'] or user in deny):
             return False
 
-        allow = self.repo.ui.config('web', 'allow_' + op, '')
-        allow = allow.replace(',', ' ').split()
-
+        allow = self.repo.ui.configlist('web', 'allow_' + op)
         return (allow and (allow == ['*'] or user in allow)) or default
 
     def do_unbundle(self, req):