mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Reduce the criteria that would match empty iterables as well as None or False values
This commit is contained in:
parent
3152af78b5
commit
fc524c17b9
@ -1779,7 +1779,7 @@ class ClearFuncs(object):
|
||||
# If there are groups in the token, check if any of them are listed in the eauth config
|
||||
group_auth_match = False
|
||||
try:
|
||||
if token.get('groups') in [False, None]:
|
||||
if token.get('groups'):
|
||||
for group in token['groups']:
|
||||
if group in eauth_groups:
|
||||
group_auth_match = True
|
||||
|
Loading…
Reference in New Issue
Block a user