Skip to content

Commit ff5c9c5

Browse files
committed
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
1 parent 25e8bbf commit ff5c9c5

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

tutoraspects/templates/aspects/apps/superset/pythonpath/openedx_sso_security_manager.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ def extra_get_user_roles(self, username, decoded_access_token):
190190
{{patch("superset-sso-assignment-rules") | indent(8)}}
191191
return None
192192

193-
@lru_cache(maxsize=LRU_CACHE_MAX_SIZE)
194193
def get_courses(self, username, permission="staff", next_url=None):
195194
"""
196195
Returns the list of courses the current user has access to.

0 commit comments

Comments
 (0)