Commit 23455042 by Will Daly

Merge pull request #3805 from edx/sanchez/TIM-563-Check-Django-Admin

Adding new attribute to the xmodule_runtime to check admin privileges on users
parents ff1e9466 afd55164
......@@ -501,6 +501,7 @@ def get_module_system_for_user(user, field_data_cache,
)
system.set(u'user_is_staff', has_access(user, descriptor.location, u'staff', course_id))
system.set(u'user_is_admin', has_access(user, 'global', 'staff'))
# make an ErrorDescriptor -- assuming that the descriptor's system is ok
if has_access(user, descriptor.location, 'staff', course_id):
......
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