mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add additional 'groups' check to rest_cherrypy if groups are not used
Fixes #26974.
This commit is contained in:
parent
d68aefcfde
commit
9a0989585b
1 changed files with 1 additions and 1 deletions
|
@ -1438,7 +1438,7 @@ class Login(LowDataAdapter):
|
|||
perms = eauth.get(token['name'], [])
|
||||
perms.extend(eauth.get('*', []))
|
||||
|
||||
if 'groups' in token:
|
||||
if 'groups' in token and token['groups'] is not False:
|
||||
user_groups = set(token['groups'])
|
||||
eauth_groups = set([i.rstrip('%') for i in eauth.keys() if i.endswith('%')])
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue