acl: cleanup
authorElifarley Callado Coelho Cruz
Fri, 18 May 2012 12:37:23 -0300
changeset 16763 c38f96ab63cb
parent 16762 93f8b9565257
child 16764 ffb68b9dbaa9
acl: cleanup
hgext/acl.py
--- a/hgext/acl.py	Mon May 21 16:36:09 2012 -0500
+++ b/hgext/acl.py	Fri May 18 12:37:23 2012 -0300
@@ -174,7 +174,7 @@
         return True
 
     for ug in usersorgroups.replace(',', ' ').split():
-        if user == ug or ug.find('@') == 0 and user in _getusers(ui, ug[1:]):
+        if user == ug or ug.startswith('@') and user in _getusers(ui, ug[1:]):
             return True
 
     return False