mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
fixes weird wording in comment
This commit is contained in:
parent
16804c2d4d
commit
6e0f205567
@ -655,11 +655,9 @@ class CkMinions(object):
|
||||
|
||||
def fill_auth_list_from_groups(self, auth_provider, user_groups, auth_list):
|
||||
'''
|
||||
Returns the provided list auf permission matchers, plus any matchers
|
||||
that are given to a group the user is in.
|
||||
|
||||
Groups are defined as any dict in which a key has a trailing '%'
|
||||
and the values are permission matchers.
|
||||
Returns a list of authorisation matchers that a user is eligible for.
|
||||
This list is a combination of the provided personal matchers plus the
|
||||
matchers of any group the user is in.
|
||||
'''
|
||||
group_names = [item for item in auth_provider if item.endswith('%')]
|
||||
if group_names:
|
||||
|
Loading…
Reference in New Issue
Block a user