bugfix: set errored_courses in default case

This commit is contained in:
Victor Shnayder
2012-08-21 13:04:33 -04:00
parent b97a2af2a2
commit ccf2cff2ba

View File

@@ -143,6 +143,7 @@ def dashboard(request):
# Global staff can see what courses errored on their dashboard
staff_access = False
errored_courses = []
if has_access(user, 'global', 'staff'):
# Show any courses that errored on load
staff_access = True