refactor to add access control to already_existing access control routines in access.py

This commit is contained in:
Kevin Chugh
2013-08-20 19:43:46 -04:00
parent a2bbb65dcf
commit 08aafc58ea

View File

@@ -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():
"""