# HG changeset patch # User Elifarley Callado Coelho Cruz # Date 1337355443 10800 # Node ID c38f96ab63cb2d9dc4433d02e52f8ad1ff00eff2 # Parent 93f8b956525705d3c8253ff280d3ff877731afa7 acl: cleanup diff -r 93f8b9565257 -r c38f96ab63cb 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