Add additional 'groups' check to rest_cherrypy if groups are not used

Fixes #26974.
This commit is contained in:
Seth House 2015-09-08 15:34:52 -06:00
parent d68aefcfde
commit 9a0989585b

View file

@ -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('%')])