You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think we should create a file permissions.php which is included in all of the views
student, assignment, code, (and section leader aka main)
Here is the function it should have:
hasPermissionsForSection(class, sl)
hasPermissionForClass(class)
hasPermission(class,student)
// if USERNAME has permission to see 'student' in 'class'
this will check against some set constant or array to see if they have permission
if user is a student, he can see his own info
if user is a sl, he can see it if he is a sl for that class
if user is a coordinator/prof he can see it
other things to consider?
The text was updated successfully, but these errors were encountered:
I think we should create a file permissions.php which is included in all of the views
student, assignment, code, (and section leader aka main)
Here is the function it should have:
hasPermissionsForSection(class, sl)
hasPermissionForClass(class)
hasPermission(class,student)
// if USERNAME has permission to see 'student' in 'class'
this will check against some set constant or array to see if they have permission
if user is a student, he can see his own info
if user is a sl, he can see it if he is a sl for that class
if user is a coordinator/prof he can see it
other things to consider?
The text was updated successfully, but these errors were encountered: