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

[Refactor] Permissions based rendering per component #265

Closed
SuperVK opened this issue Jul 26, 2024 · 0 comments · Fixed by #303
Closed

[Refactor] Permissions based rendering per component #265

SuperVK opened this issue Jul 26, 2024 · 0 comments · Fixed by #303

Comments

@SuperVK
Copy link
Member

SuperVK commented Jul 26, 2024

Is this a feature for the SudoSOS point of sale or for the SudoSOS dashboard?

Dashboard

What would you like?

We can use the new backend endpoint to render components based on permissions instead of based on roles.

Why is this needed?

Right now we do it per page, but one some pages people can see or do slightly more than other people. Furthermore, the roles we use right now are not fixed and might change, or dissappear. So we should do rendering based on the actual permissions that we know a user has, and that we can receive from the backend.

Other information

We could do it similiar to: https://github.com/GEWIS/parelpracht-client/blob/master/src/components/AuthorizationComponent.tsx and use a rolemanager similiar to the backend to determine what they can do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant