From a68b6036385c58bca02cc0d1e1ac5308623f0e74 Mon Sep 17 00:00:00 2001 From: toxinu Date: Mon, 27 Apr 2020 17:21:13 +0900 Subject: [PATCH] Can only check user specific permissions if logged in --- openedx/core/djangoapps/content_libraries/permissions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openedx/core/djangoapps/content_libraries/permissions.py b/openedx/core/djangoapps/content_libraries/permissions.py index c2acfcf47f..555fde0fa0 100644 --- a/openedx/core/djangoapps/content_libraries/permissions.py +++ b/openedx/core/djangoapps/content_libraries/permissions.py @@ -56,7 +56,7 @@ perms[CAN_LEARN_FROM_THIS_CONTENT_LIBRARY] = ( # Regular users can learn if the library allows public learning: Attribute('allow_public_learning', True) | # Users/groups who are explicitly granted permission can learn from the library: - has_explicit_read_permission_for_library + (is_user_active & has_explicit_read_permission_for_library) ) # Is the user allowed to create content libraries?