Skip to content
Snippets Groups Projects
Commit bedc2081 authored by Dmitry Viskov's avatar Dmitry Viskov
Browse files

TNL-5821 - bugfix

parent 5835468d
No related merge requests found
......@@ -304,7 +304,7 @@ def get_course_tab_list(request, course):
continue
tab.name = _("Entrance Exam")
if tab.type == 'static_tab' and tab.course_staff_only and \
not bool(user and CourseStaffRole(course.id).has_user(user)):
not bool(user and has_access(user, 'staff', course, course.id)):
continue
course_tab_list.append(tab)
......
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