EDITOR_ROLE_NAME -> STAFF_ROLE_NAME

This commit is contained in:
Chris Dodge
2012-10-18 10:00:08 -04:00
parent c112e5077e
commit 236d37b276

View File

@@ -752,7 +752,7 @@ This view will return all CMS users who are editors for the specified course
def manage_users(request, location):
# check that logged in user has permissions to this item
if not has_access(request.user, location, role=INSTRUCTOR_ROLE_NAME) and not has_access(request.user, location, role=EDITOR_ROLE_NAME):
if not has_access(request.user, location, role=INSTRUCTOR_ROLE_NAME) and not has_access(request.user, location, role=STAFF_ROLE_NAME):
raise PermissionDenied()
course_module = modulestore().get_item(location)