Skip to content
Snippets Groups Projects
Verified Commit c2f80732 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

feat: get PRIVILEGED_GROUP and ENTITLED_GROUPS from the environment

parent 92651bc3
No related branches found
No related tags found
1 merge request!29Use docker main tag
...@@ -161,10 +161,14 @@ LOGIN_URL = "/admin/login/" # Login page OIDC redirects to ...@@ -161,10 +161,14 @@ LOGIN_URL = "/admin/login/" # Login page OIDC redirects to
OIDC_EXTRA_SCOPE_CLAIMS = "steering.oidc_provider_settings.AuraScopeClaims" OIDC_EXTRA_SCOPE_CLAIMS = "steering.oidc_provider_settings.AuraScopeClaims"
# OIDC Provider extra scope claims # OIDC Provider extra scope claims
# - Superusers and members of these group are privileged # - Superusers and members of this group are privileged.
PRIVILEGED_GROUP = "Program" PRIVILEGED_GROUP = os.getenv("PRIVILEGED_GROUP") if os.getenv("") != "" else "Program"
# - Members of these groups are entitled # - Members of these groups are entitled.
ENTITLED_GROUPS = ["Broadcast", "BroadcastPlus"] # this needs to be a list ENTITLED_GROUPS = (
os.getenv("ENTITLED_GROUPS").split(",")
if os.getenv("ENTITLED_GROUPS") != ""
else ["Broadcast,BroadcastPlus"]
)
# The API will filter the active shows using one of these filters # The API will filter the active shows using one of these filters
# One of these should to be True. # One of these should to be True.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment