This commit is contained in:
2024-06-05 19:05:10 +02:00
commit 2ad8b5ad4f
9 changed files with 147 additions and 0 deletions

6
libs/lib_checks.py Normal file
View 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