Commit 236d37b2 by Chris Dodge

EDITOR_ROLE_NAME -> STAFF_ROLE_NAME

parent c112e507
...@@ -752,7 +752,7 @@ This view will return all CMS users who are editors for the specified course ...@@ -752,7 +752,7 @@ This view will return all CMS users who are editors for the specified course
def manage_users(request, location): def manage_users(request, location):
# check that logged in user has permissions to this item # 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() raise PermissionDenied()
course_module = modulestore().get_item(location) course_module = modulestore().get_item(location)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment