Skip to content
Snippets Groups Projects
Commit c4afddfd authored by Victor Shnayder's avatar Victor Shnayder
Browse files

Fix staff access check in simplewiki

parent 7c6b9eba
No related merge requests found
......@@ -51,7 +51,7 @@ def update_template_dictionary(dictionary, request=None, course=None, article=No
dictionary.update(csrf(request))
if request and course:
dictionary['staff_access'] = has_access(request.user, course, 'load')
dictionary['staff_access'] = has_access(request.user, course, 'staff')
else:
dictionary['staff_access'] = False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment