Skip to content
Snippets Groups Projects
Unverified Commit e712be78 authored by David Ormsbee's avatar David Ormsbee Committed by GitHub
Browse files

Merge pull request #20094 from stvstnfrd/sysadmin/user-courses

Remove course listing from user tab of sysadmin
parents 810b8b60 f165f52d
No related merge requests found
......@@ -183,15 +183,6 @@ class Users(SysadminDashboardView):
self.datatable['data'] = [[_('Total number of users'),
User.objects.all().count()]]
self.msg += HTML(u'<h2>{0}</h2>').format(
_('Courses loaded in the modulestore')
)
self.msg += HTML(u'<ol>')
for course in self.get_courses():
self.msg += HTML(u'<li>{0} ({1})</li>').format(
escape(text_type(course.id)), text_type(course.location))
self.msg += HTML(u'</ol>')
def get(self, request):
if not request.user.is_staff:
......
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