really treat the right side of acl.{allow,deny} as a list of users
authorMikhail Sobolev <mss@mawhrin.net>
Tue, 27 Jun 2006 01:41:07 +0300
changeset 3059 5e39ad2c8b52
parent 3058 713de12d9ce5
child 3060 aa1cee5b8afb
really treat the right side of acl.{allow,deny} as a list of users the current implementation seems to expect only user per pattern, which contradicts the documentation available at the file beginning.
hgext/acl.py
--- a/hgext/acl.py
+++ b/hgext/acl.py
@@ -60,8 +60,8 @@ class checker(object):
             return None, False
 
         thisuser = self.getuser()
-        pats = [pat for pat, user in self.ui.configitems(key)
-                if user == thisuser]
+        pats = [pat for pat, users in self.ui.configitems(key)
+                if thisuser in users.replace(',', ' ').split()]
         self.ui.debug(_('acl: %s enabled, %d entries for user %s\n') %
                       (key, len(pats), thisuser))
         if pats: