We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 691d2c9 commit af73a54Copy full SHA for af73a54
src/auth.py
@@ -16,12 +16,13 @@ def wrapped_function(*args, **kwargs):
16
groups = flask.session["userinfo"].get("groups", [])
17
is_eboard = "eboard" in groups
18
is_rtp = "rtp" in groups
19
+ is_devcade_admin = "devcade" in groups
20
auth_dict = {
21
"uid": uid,
22
"first": first,
23
"last": last,
24
"picture": picture,
- "admin": is_eboard or is_rtp or uid == "cinnamon"
25
+ "admin": is_eboard or is_rtp or is_devcade_admin
26
}
27
kwargs["auth_dict"] = auth_dict
28
return func(*args, **kwargs)
0 commit comments