Commit c4afddfd by Victor Shnayder

Fix staff access check in simplewiki

parent 7c6b9eba
...@@ -51,7 +51,7 @@ def update_template_dictionary(dictionary, request=None, course=None, article=No ...@@ -51,7 +51,7 @@ def update_template_dictionary(dictionary, request=None, course=None, article=No
dictionary.update(csrf(request)) dictionary.update(csrf(request))
if request and course: if request and course:
dictionary['staff_access'] = has_access(request.user, course, 'load') dictionary['staff_access'] = has_access(request.user, course, 'staff')
else: else:
dictionary['staff_access'] = False dictionary['staff_access'] = False
......
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