Commit d682802f by mrey Committed by George Song

Disable view of Git Import when user is professor of course but not staff user

Reason: Before this fix, if the user is not staff (user.is_staff=0) and ENABLE_SYSADMIN_DASHBOARD=True
happens that the user can access the Git Import in Sysadmin dashboard and get to see the links in the menu
of the sysadmin dashboard (Users, Courses, Staffing and enrollment). When this user clicks on one of
these links, it gets an error from the server.
parent 72c9d58a
...@@ -104,7 +104,7 @@ from openedx.core.djangolib.markup import HTML, Text ...@@ -104,7 +104,7 @@ from openedx.core.djangolib.markup import HTML, Text
</li> </li>
</ul> </ul>
%if settings.FEATURES.get('ENABLE_SYSADMIN_DASHBOARD', ''): %if settings.FEATURES.get('ENABLE_SYSADMIN_DASHBOARD', '') and user.is_staff:
<p> <p>
## Translators: git is a version-control system; see http://git-scm.com/about ## Translators: git is a version-control system; see http://git-scm.com/about
${Text(_("View detailed Git import logs for this course {link_start}by clicking here{link_end}.")).format( ${Text(_("View detailed Git import logs for this course {link_start}by clicking here{link_end}.")).format(
......
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