From d7e6e01bae122b577ca395776cd0f79563861cb2 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Wed, 2 Sep 2020 15:45:33 -0400 Subject: [PATCH] Map admin feature roles to admin system role (#24897) --- lms/envs/common.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lms/envs/common.py b/lms/envs/common.py index 6ec091e8d214..25f06b12374f 100644 --- a/lms/envs/common.py +++ b/lms/envs/common.py @@ -3666,12 +3666,17 @@ def _make_locale_paths(settings): # pylint: disable=missing-function-docstring ENTERPRISE_CUSTOMER_COOKIE_NAME = 'enterprise_customer_uuid' BASE_COOKIE_DOMAIN = 'localhost' SYSTEM_TO_FEATURE_ROLE_MAPPING = { - ENTERPRISE_ADMIN_ROLE: [ENTERPRISE_DASHBOARD_ADMIN_ROLE], + ENTERPRISE_ADMIN_ROLE: [ + ENTERPRISE_DASHBOARD_ADMIN_ROLE, + ENTERPRISE_CATALOG_ADMIN_ROLE, + ENTERPRISE_ENROLLMENT_API_ADMIN_ROLE, + ENTERPRISE_REPORTING_CONFIG_ADMIN_ROLE, + ], ENTERPRISE_OPERATOR_ROLE: [ ENTERPRISE_DASHBOARD_ADMIN_ROLE, ENTERPRISE_CATALOG_ADMIN_ROLE, ENTERPRISE_ENROLLMENT_API_ADMIN_ROLE, - ENTERPRISE_REPORTING_CONFIG_ADMIN_ROLE + ENTERPRISE_REPORTING_CONFIG_ADMIN_ROLE, ], }