Skip to content
Snippets Groups Projects
Commit ef1f2646 authored by Alfred Ashur Oshana's avatar Alfred Ashur Oshana
Browse files

debug

parent b45e2bac
No related branches found
No related tags found
No related merge requests found
......@@ -12,10 +12,13 @@ ADMIN_GROUPS = ["pi-lab"]
def is_admin(x_forwarded_groups: str):
admin = False
logger.debug(x_forwarded_groups)
if x_forwarded_groups and x_forwarded_groups is not None:
for group in ADMIN_GROUPS:
if group in x_forwarded_groups:
admin = True
logger.debug("setting true")
logger.debug("returning {admin}")
return admin
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment