Make hidden_module not cause 500 errors by adding a get_html()

This commit is contained in:
Victor Shnayder
2013-02-14 09:09:11 -05:00
parent 21dab27ed6
commit fffbb55944

View File

@@ -3,7 +3,11 @@ from xmodule.raw_module import RawDescriptor
class HiddenModule(XModule):
pass
def get_html(self):
if self.system.user_is_staff:
return "ERROR: This module is unknown--students will not see it at all"
else:
return ""
class HiddenDescriptor(RawDescriptor):