Rename MalformedDescriptor to ErrorDescriptor

* change references and tests
* add staff/non-staff display
* added is_staff to ModuleSystem
This commit is contained in:
Victor Shnayder
2012-07-31 13:44:04 -04:00
parent 707551b08d
commit c0cdff7071
7 changed files with 58 additions and 32 deletions

View File

@@ -172,6 +172,7 @@ def get_module(user, request, location, student_module_cache, position=None):
# a module is coming through get_html and is therefore covered
# by the replace_static_urls code below
replace_urls=replace_urls,
is_staff=user.is_staff,
)
# pass position specified in URL to module through ModuleSystem
system.set('position', position)