Mercurial > hg-stable
changeset 16763:c38f96ab63cb
acl: cleanup
author | Elifarley Callado Coelho Cruz |
---|---|
date | Fri, 18 May 2012 12:37:23 -0300 |
parents | 93f8b9565257 |
children | ffb68b9dbaa9 |
files | hgext/acl.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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