mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 13:52:15 +01:00
Update ftrack_base_handler.py
This commit is contained in:
parent
d61ba75375
commit
73720698fc
1 changed files with 2 additions and 1 deletions
|
|
@ -117,8 +117,9 @@ class BaseHandler(object):
|
|||
'User where username is "{}"'.format(username)
|
||||
).one()
|
||||
available = False
|
||||
lowercase_rolelist = [x.lower() for x in self.role_list]
|
||||
for role in user['user_security_roles']:
|
||||
if role['security_role']['name'] in self.role_list:
|
||||
if role['security_role']['name'].lower() in lowercase_rolelist:
|
||||
available = True
|
||||
break
|
||||
if available is False:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue