upload
This commit is contained in:
6
libs/lib_checks.py
Normal file
6
libs/lib_checks.py
Normal file
@@ -0,0 +1,6 @@
|
||||
def has_role(user_roles, searched_role):
|
||||
found = False
|
||||
for i in user_roles:
|
||||
if i.name == searched_role:
|
||||
found = True
|
||||
return found
|
||||
Reference in New Issue
Block a user