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

Prevent downgrade permission more than parent's #1403

Open
pyphilia opened this issue Aug 6, 2024 · 0 comments
Open

Prevent downgrade permission more than parent's #1403

pyphilia opened this issue Aug 6, 2024 · 0 comments
Labels
bug 🪲 Something isn't working

Comments

@pyphilia
Copy link
Contributor

pyphilia commented Aug 6, 2024

In membership table, we can change the access permission of a member on this item B in parent A. Let's say we have memberships: imA.permission = write and imB = admin for a member, updating imB shouldn't be less than write.

It's not possible to prevent this behavior in the frontend (unless we specifically fetch parent's memberships) since the received memberships are "squashed" (eg. we receive only imB because it's higher than imA).

@pyphilia pyphilia added the bug 🪲 Something isn't working label Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant