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

Permission component #170

Open
maparent opened this issue Mar 16, 2022 · 0 comments
Open

Permission component #170

maparent opened this issue Mar 16, 2022 · 0 comments
Assignees
Labels
frontend involves the frontend good first issue Good for newcomers

Comments

@maparent
Copy link
Collaborator

maparent commented Mar 16, 2022

We have permission arrays in many levels:
member, quest_membership, guild_membership, casting, role, role_node_constraint.
We want to edit these in many places in the admin UX. It would make sense to create a generic permission component; presumably based on multi selection widget.
it would receive as props:

  1. an object of which it only knows that it has an (optional) permission array.
  2. list of preferences that can be set on this object (we could subset to only permission that it makes sense to define at this level
  3. list of permission that have been set at a higher level in the hierarchy, and hence do not need to be set and cannot be unset locally.

It would probably send a signal to its owner component whenever a permission is added/removed; the owning component would know the object type and could call the appropriate update function.

@maparent maparent changed the title Preference component Permission component Mar 16, 2022
@maparent maparent added good first issue Good for newcomers frontend involves the frontend labels May 16, 2022
@maparent maparent moved this to Todo in SenseCraft May 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend involves the frontend good first issue Good for newcomers
Projects
Status: Todo
Development

No branches or pull requests

2 participants