src/mercurialserver/access.py
changeset 77 8d14aac93b5d
parent 67 fd16d9a1234b
child 241 4af1e1ccf75b
--- a/src/mercurialserver/access.py	Fri Mar 06 13:06:36 2009 +0000
+++ b/src/mercurialserver/access.py	Fri Mar 06 13:26:35 2009 +0000
@@ -23,16 +23,12 @@
         self.ui = ui
         self.repo = repo
         
-        self.rules = ruleset.rules_from_env()
-        self.rules.set(user = os.environ['REMOTE_USER'])
-        self.rules.set(repo = os.environ['HG_REPO_PATH'])
-
     def allow(self, ctx):
         branch = ctx.branch()
-        if not self.rules.allow("write", branch=branch, file=None):
+        if not ruleset.rules.allow("write", branch=branch, file=None):
             return False
         for f in ctx.files():
-            if not self.rules.allow("write", branch=branch, file=f):
+            if not ruleset.rules.allow("write", branch=branch, file=f):
                 return False
         return True