mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
acl: cleanup
This commit is contained in:
parent
42c30757a2
commit
f8e43e8050
@ -174,7 +174,7 @@ def _usermatch(ui, user, usersorgroups):
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user