-
-
Notifications
You must be signed in to change notification settings - Fork 123
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
Subdivide User Permission #325
Comments
Thanks for the write-up! I like the design and agree with all points. A few comments:
Overall this looks like a big task, so maybe it will be helpful to split it into multiple smaller issues so they are easier to develop and track. If you are interested we can then each pick one or more sub-tasks to work on :) |
@hkalexling Thanks for the comments!
|
|
Could you explain more about that? |
Oops sorry on second thought that doesn't make sense. A user should be able to change their own password regardless the of permission level. I must be drunk when writing the comment XD |
We can also have separate permissions for creating/viewing/managing subscriptions. Currently only admin users have access to these |
Currently, the admin permission of Mango is all-or-nothing. There are many requests for splitting admin permissions (#249, #66) (just 2?).
Current features that requires an admin permission
Features that would require an permission
If there is anything that you think it's an action that requires permission, please comment freely!
Some features I listed would be questionable that they are proper to be subdivided.
Suggestion
A user whose
is_admin
istrue
has a full permission (A current behavior isn't changed),others would be checked if they have a permission to do.
Permissions are represented as a string such as 'library.all' (full permission on library related), 'chapter.download' (only able to download chapters).
Implementation Plan
user_permissions
table.This will be better than adding boolean columns by each permission to the user table.
AuthHandler
)Migration
go ->
create an empty
permissions
tablepreserve the
is_admin
column<- back
drop the
permissions
tablepreserve the
is_admin
columnUI
In user management page (admin only?) there is a permission section to see and to change permission of selected user.
use the above
permission_map
to make a table.Please comment freely about this issue!
The text was updated successfully, but these errors were encountered: