Create Seeds Script to Create Default Roles and Permissions #86
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
As noted in #82 (comment) we have 7
default
roles:id
name
desc
person_id
1
CREATE
new roles. CanCREATE
,UPDATE
andDELETE
Any content. CanPURGE
deleted items. Can "ban" any user including people with "Admin" Role.2
CREATE
,UPDATE
andDELETE
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.3
CREATE
andUPDATE
Any content. Can "DELETE
" content. Cannot see deleted content.4
CREATE
content. CanUPDATE
their own content. CanDELETE
their own content.5
COMMENT
on content that has commenting enabled.6
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.7
Todo
mix ecto.setup
.default
roles + permissions, inspired by: https://wordpress.org/support/article/roles-and-capabilitiesdefault
rolesI 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
The text was updated successfully, but these errors were encountered: