Add martin.k as admin
This commit is contained in:
@@ -64,7 +64,7 @@ def get_user(request: Request, allow_none: bool = True) -> dict | None:
|
|||||||
return {
|
return {
|
||||||
"username": request.headers["ynh_user"],
|
"username": request.headers["ynh_user"],
|
||||||
# TODO: This should obviously be replaced with a role based check
|
# TODO: This should obviously be replaced with a role based check
|
||||||
"admin": request.headers["ynh_user"] == "niklas.m",
|
"admin": request.headers["ynh_user"] in ["niklas.m", "martin.k"]
|
||||||
}
|
}
|
||||||
if allow_none:
|
if allow_none:
|
||||||
return None
|
return None
|
||||||
|
|||||||
Reference in New Issue
Block a user