Fix auth failure on syndic with external_auth

This is totally @thatch45's fix, but if it's broken it's probably my
fault.  Refs #24147.
This commit is contained in:
Michael Steed 2015-05-28 17:21:24 -06:00
parent 071751d13f
commit 482d1cfc64

View file

@ -2379,6 +2379,8 @@ class ClearFuncs(object):
'Authentication failure of type "user" occurred.'
)
return ''
elif clear_load.get('key', 'invalid') == self.key.get('root'):
clear_load.pop('key')
else:
if clear_load['user'] in self.key:
# User is authorised, check key and check perms