mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-24 02:20:08 +00:00
Fix auth handling of the session/info
This commit is contained in:
parent
f6a17b5f32
commit
3c3d6bb314
@ -162,7 +162,7 @@ def authorize(name, element, tenant=False, operation='create',
|
||||
return False
|
||||
manager = configmanager.ConfigManager(tenant, username=user)
|
||||
userobj = manager.get_user(user)
|
||||
if element.startswith('/sessions/current/webauthn/registered_credentials/') or element.startswith('/sessions/current/webauthn/validate/'):
|
||||
if element and (element.startswith('/sessions/current/webauthn/registered_credentials/') or element.startswith('/sessions/current/webauthn/validate/')):
|
||||
return userobj, manager, user, tenant, skipuserobj
|
||||
if userobj and userobj.get('role', None) == 'Stub':
|
||||
userobj = None
|
||||
|
Loading…
Reference in New Issue
Block a user