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

Create Seeds Script to Create Default Roles and Permissions #86

Closed
3 tasks done
nelsonic opened this issue Jul 23, 2020 · 2 comments
Closed
3 tasks done

Create Seeds Script to Create Default Roles and Permissions #86

nelsonic opened this issue Jul 23, 2020 · 2 comments
Labels
enhancement New feature or enhancement of existing functionality T1h Time Estimate 1 Hour technical A technical issue that requires understanding of the code, infrastructure or dependencies

Comments

@nelsonic
Copy link
Member

nelsonic commented Jul 23, 2020

As noted in #82 (comment) we have 7 default roles:

id name desc person_id
1 superadmin Can CREATE new roles. Can CREATE, UPDATE and DELETE Any content. Can PURGE deleted items. Can "ban" any user including people with "Admin" Role. 1
2 admin Can create new roles and assign existing roles. Can CREATE, UPDATE and DELETE any content. Can "ban" any user except people with "admin" Role. Can see deleted content and un-delete it. Cannot purge deleted. This guarantees audit-trail. 1
3 editor Can CREATE and UPDATE Any content. Can "DELETE" content. Cannot see deleted content. 1
4 creator Can CREATE content. Can UPDATE their own content. Can DELETE their own content. 1
5 commenter Can COMMENT on content that has commenting enabled. 1
6 subscriber Can SUBSCRIBE to receive updates (e.g: newsletter), but has either not verified their account or has made negative comments and is therefore not allowed to comment. 1
7 banned Can login and see their past content. Cannot create any new content. Can see the reason for their banning (which the Admin has to write when performing the "ban user" action. usually linked to a specific action the person performed like a particularly unacceptable comment.) 1

Todo

I expect this task to take a couple of hours.
But I'm going to install Wordpress on my localhost first and view how they have setup the permissions.
Related to #27 / #31

@nelsonic nelsonic added enhancement New feature or enhancement of existing functionality T1h Time Estimate 1 Hour technical A technical issue that requires understanding of the code, infrastructure or dependencies labels Jul 23, 2020
@nelsonic
Copy link
Member Author

Default roles created:
image

@nelsonic
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or enhancement of existing functionality T1h Time Estimate 1 Hour technical A technical issue that requires understanding of the code, infrastructure or dependencies
Projects
None yet
Development

No branches or pull requests

1 participant