Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

permissions.php #27

Closed
jkeesh opened this issue Dec 22, 2010 · 0 comments
Closed

permissions.php #27

jkeesh opened this issue Dec 22, 2010 · 0 comments

Comments

@jkeesh
Copy link
Owner

jkeesh commented Dec 22, 2010

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?

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant