Skip to content

Comments

Dynamic roles#96

Merged
jordan-powers merged 7 commits intomasterfrom
dynamic-roles
Mar 3, 2025
Merged

Dynamic roles#96
jordan-powers merged 7 commits intomasterfrom
dynamic-roles

Conversation

@jordan-powers
Copy link
Member

This patch removes the hardcoded role checks from the frontend, and replaces them with fine-grained permissions checks. The map of roles -> allowed permissions is retrieved from the server, then the user's role is looked-up to determine which actions the user is permitted to take.

This makes the configuration of new roles much easier, and permits us to add a new read-only role.

Resolves #95

@jordan-powers jordan-powers merged commit 02e9caa into master Mar 3, 2025
2 checks passed
@jordan-powers jordan-powers deleted the dynamic-roles branch March 3, 2025 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add new read-only permission level

1 participant