diff hgext/acl.py @ 16763:c38f96ab63cb

acl: cleanup
author Elifarley Callado Coelho Cruz
date Fri, 18 May 2012 12:37:23 -0300
parents 38caf405d010
children ffb68b9dbaa9
line wrap: on
line diff
--- 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