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

Implement privilege middleware across the controllers #25

Open
malexandert opened this issue Dec 20, 2017 · 0 comments
Open

Implement privilege middleware across the controllers #25

malexandert opened this issue Dec 20, 2017 · 0 comments

Comments

@malexandert
Copy link
Collaborator

malexandert commented Dec 20, 2017

We already require Users are logged in to do basically anything in the API. We should also require that the logged in User has an appropriate auth level, as defined here

  • 'None' Auth

    1. Shouldn't be able to do anything. These are pending users that must be approved by an Admin before they can use their account
  • 'User' Auth

    1. Should be able to search for and view basically everything: Users, artists, albums, programs, playlists, etc.
    2. Should be able to edit their own User information and create/edit/delete playlists on their own shows/in random playlists
  • 'Exec' Auth

    1. Should be able to promote users to Exec level from User level, and demote users from Exec level to User level
    2. Should be able to create, update, and delete programs, artists, albums
    3. Should be able to approve pending users
  • 'Admin' Auth

    1. Should be able to promote/demote users to any auth level
@malexandert malexandert added this to the Port project from MySQL to MongoDB milestone Dec 20, 2017
@malexandert malexandert modified the milestones: Port project from MySQL to MongoDB, The warmd API Dec 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant