From f40844263ee91de759ad25fdd0e8b87683895e48 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Thu, 21 Jul 2022 19:23:05 -0400 Subject: [PATCH] Allow `MW_Database Admin`s staff access --- cmsmanage/settings/prod_base.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/cmsmanage/settings/prod_base.py b/cmsmanage/settings/prod_base.py index fee4566..b30d7a3 100644 --- a/cmsmanage/settings/prod_base.py +++ b/cmsmanage/settings/prod_base.py @@ -28,9 +28,14 @@ AUTH_LDAP_USER_ATTR_MAP = { } AUTH_LDAP_USER_FLAGS_BY_GROUP = { - "is_staff": LDAPGroupQuery( - "cn=MW_CMS Staff,cn=groups,dc=sawtooth,dc=claremontmakerspace,dc=org" - ), + "is_staff": ( + LDAPGroupQuery( + "cn=MW_CMS Staff,cn=groups,dc=sawtooth,dc=claremontmakerspace,dc=org" + ) + | LDAPGroupQuery( + "cn=MW_Database Admin,cn=groups,dc=sawtooth,dc=claremontmakerspace,dc=org" + ) + ) } AUTH_LDAP_GROUP_SEARCH = LDAPSearch(