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

[Feature/966] Account Permissions Redesign #151

Merged
merged 3 commits into from
Nov 14, 2024
Merged

Conversation

AurelicButter
Copy link
Owner

What Does This Do?

Updates the website to utilize the new permission system that will be deployed on the next release. Permissions are going from a role-based system to a hybrid user & role system where the site can adequately apply and remove permissions to various features to individual users.

How is it Done?

Updated the existing user cookie service to handle a new private parameter to store all of the permissions. Permissions list is refetched on any authentication guard (to verify with the server that the user does hold those permissions) and on first load (as the permissions list the user has is not cached after fetching).

Related Tickets and Issues

Ticket: Internal#966

This is also paired with a pull request for the API, denoted using the same ticket number in the title.

Along with the updated name, ported over common user checks into the service and updated the logic to work with the new permissions system.

Awaiting new API endpoint to retrieve the auth user's permissions before continuing.
@AurelicButter AurelicButter added the Enhancement New feature or request label Nov 14, 2024
@AurelicButter AurelicButter self-assigned this Nov 14, 2024
@AurelicButter AurelicButter merged commit 70efbca into development Nov 14, 2024
3 checks passed
@AurelicButter AurelicButter deleted the feature/966 branch November 14, 2024 05:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant