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

Add Gates for Authorization #4

Closed
8 tasks done
hanisirfan opened this issue Dec 6, 2020 · 1 comment
Closed
8 tasks done

Add Gates for Authorization #4

hanisirfan opened this issue Dec 6, 2020 · 1 comment
Labels
enhancement New feature or request
Projects

Comments

@hanisirfan
Copy link
Member

hanisirfan commented Dec 6, 2020

Gates

  • authUser - Check whether current authenticated user allowed to access the page. Ex: User Profile.
  • authLecturer - Check if lecturer could access anything allowed for them.
  • authCoordinator - Check if lecturer is a classroom coordinator of a student.
  • authAdmin - Check whether current authenticated user is admin.
  • authSuperAdmin - Check whether current authenticated user is super admin.

Middleware

  • auth - Default Laravel auth middleware. Check if user is authenticated. If not redirect to / aka login page.
  • userIsAdmin - Check if current authenticated user is an Admin. If not, abort with 403.
  • userIsSuperAdmin - Check if current authenticated user is an SuperAdmin. If not, abort with 403.
@hanisirfan hanisirfan added this to To Do in User System Dec 6, 2020
@hanisirfan hanisirfan added enhancement New feature or request and removed feature labels Dec 10, 2020
@hanisirfan hanisirfan changed the title Add Gates and Middleware for Authorization Add Policies for Authorization Dec 11, 2020
@hanisirfan hanisirfan changed the title Add Policies for Authorization Add Gates for Authorization Dec 12, 2020
@hanisirfan hanisirfan added the stays-open Issue that will forever be open :> label Dec 18, 2020
@hanisirfan hanisirfan moved this from To Do to Done in User System Jan 18, 2021
@hanisirfan hanisirfan removed the stays-open Issue that will forever be open :> label Feb 22, 2021
@hanisirfan
Copy link
Member Author

Added to #5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Development

No branches or pull requests

1 participant