From 08aafc58ea2dd1a5ee9c78bee8c136a8a0e1a2f6 Mon Sep 17 00:00:00 2001 From: Kevin Chugh Date: Tue, 20 Aug 2013 19:43:46 -0400 Subject: [PATCH] refactor to add access control to already_existing access control routines in access.py --- lms/djangoapps/courseware/access.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lms/djangoapps/courseware/access.py b/lms/djangoapps/courseware/access.py index 7c85e1e787..02289a045e 100644 --- a/lms/djangoapps/courseware/access.py +++ b/lms/djangoapps/courseware/access.py @@ -134,7 +134,7 @@ def _has_access_course_desc(user, course, action): Can this user access the forums in this course? """ return (CourseEnrollment.is_enrolled(request.user, course_id) or \ - _has_staff_access_to_descriptor(user, course) + _has_staff_access_to_descriptor(user, course)) def can_enroll(): """