-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
Roles & permissions #202
Comments
@taoeffect, @leihla. Seems like we need design for this. |
Development StepsFigma link for the hypothetical UIs: here Step 1. - Build 'Roles & Permissions' UI with dummy dataBuilding 'Roles & Permissions' section in 'Group Settings' page, which will look something like below. Step 2. - Build UIs for 'Add/Edit Permissions' with dummy dataThis might be building a new modal where the admin user can assign a role to other members or edit their permissions which will be accessed via below call-to-actions. Step 3. - Implement the functionalities in the
|
Hi @taoeffect , I'm in the middle of defining some roles in a group now, and got a couple of questions regarding the role Q1. Q2. Q3. Thanks, |
So, the idea I had was that if you were a "delegator", it meant that the admin had trusted you to be able to give whatever permissions you have to other people. It would mean you (as the admin) trust them to decide who else can have these permissions, and it would necessarily imply the ability to remove permissions too. However, it would not mean that the delegator could delegate the delegate-permission to others. Only the admin would be able to do this. In other words, if the admin granted me This is to prevent the following scenario:
In that scenario, the moderator-delegator A made a mistake in selecting B as another moderator-delegator and the group gets overthrown. I have personally witnessed this scenario happen. In other words, a So, I don't think Hopefully that answers it, but if anything is unclear let me know your doubts/concerns on Slack. :) |
Problem
Some users will likely need to perform special functions for the group. It's likely that some of these functions should be restricted only to those users with the assigned role to perform them.
Solution
Design a generic role + permissions system, where each user can be assigned a role that comes with certain permissions.
A "role" is a bundle of permissions.
A permission is a string that is internally interpreted by both the UI and the contracts as being allowed to perform certain actions.
Possibly useful stuff:
The text was updated successfully, but these errors were encountered: