From ff5c9c5651e5d0f7abd4aace0809d8344d433ffa Mon Sep 17 00:00:00 2001 From: Cristhian Garcia Date: Tue, 3 Oct 2023 11:31:31 -0500 Subject: [PATCH] fix: remove cache for get_courses This fixes an issue in small installations where if the permissions were granted after the user login to superset, superset will cache forever the missing permissions and the server needs to be restarted --- .../apps/superset/pythonpath/openedx_sso_security_manager.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tutoraspects/templates/aspects/apps/superset/pythonpath/openedx_sso_security_manager.py b/tutoraspects/templates/aspects/apps/superset/pythonpath/openedx_sso_security_manager.py index b8a3b7f4f..d19e32c9a 100644 --- a/tutoraspects/templates/aspects/apps/superset/pythonpath/openedx_sso_security_manager.py +++ b/tutoraspects/templates/aspects/apps/superset/pythonpath/openedx_sso_security_manager.py @@ -190,7 +190,6 @@ def extra_get_user_roles(self, username, decoded_access_token): {{patch("superset-sso-assignment-rules") | indent(8)}} return None - @lru_cache(maxsize=LRU_CACHE_MAX_SIZE) def get_courses(self, username, permission="staff", next_url=None): """ Returns the list of courses the current user has access to.