Add "instructor" mode to Sonar.
Review Request #7930 — Created Jan. 30, 2016 and submitted
This change adds a new "type" field to users which can be one of "student",
"mentor", or "instructor". Mentors are still the superusers of the system,
and instructors are a limited class where they can see all the other users
within their own groups but cannot see anyone else, and cannot make changes.
- Set myself to be an instructor and joined one of our active groups. Saw
everything that I expected to. - Set myself to be a student and saw the limited student view.
Description | From | Last Updated |
---|---|---|
Might as well just use isMentor || isInstructor here. |
mike_conley |
-
Tool: PEP8 Style Checker Ignored Files: lib/frontend/application.js lib/frontend/header-view.js lib/frontend/user-detail-view.js lib/api.js lib/frontend/sidebar-view.js lib/frontend/calendar-view.js lib/frontend/application-view.js views/main.handlebars lib/routes.js lib/schema.js lib/frontend/models.js Tool: Pyflakes Ignored Files: lib/frontend/application.js lib/frontend/header-view.js lib/frontend/user-detail-view.js lib/api.js lib/frontend/sidebar-view.js lib/frontend/calendar-view.js lib/frontend/application-view.js views/main.handlebars lib/routes.js lib/schema.js lib/frontend/models.js