-
Notifications
You must be signed in to change notification settings - Fork 388
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
[r/boards] initialize role management #3171
Comments
@salmad3 to solve |
@salmad3 we could have an issue so in the future we support changing role permissions dynamically. But it might not even be required, roles and permissions mapping is up to the |
@jeronimoalbi sounds good, let's tackle integration with AdminDAO as a follow up. |
Context
This issue is meant to check and finalize the initial role management.
The MVP plans to introduce distinct roles (Owner, Admin, Moderator, Member, Public) and a set of permissions (e.g.,
create:board
,flag:thread
,invite:member
, etc.). This ensures that day-to-day operations (like creating threads, moderating content, or configuring boards) can be delegated appropriately.Acceptance Criteria
Role Definitions
Permission Mapping
"create:board"
,"rename:board"
,"delete:board"
"flag:thread"
,"flag:comment"
,"hide:post"
"invite:member"
,"remove:member"
, etc.Checking Permissions
HasPermission(user Address, permission string, args []interface{}) bool
.WithPermission(...)
if we want to incorporate callback logic or proposal-based approaches later.Example
Assigning / Changing Roles
SetUserRole(user Address, role string)
requires"role:assign"
permission.Local vs. Global Permissions
Tests
Notes
Address -> Role
).v2
,v3
, etc., but the core MVP roles should remain stable.The text was updated successfully, but these errors were encountered: