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

Replaced loadedPermissions with role #19896

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

allouis
Copy link
Contributor

@allouis allouis commented Mar 20, 2024

ref ENG-728
ref https://linear.app/tryghost/issue/ENG-728

The loadedPermissions were only used to check roles or whether an api key was used. The later is already exposed on the context object, so we just need to pass the role. This allows us to internally change how permissions are loaded without having downstream effects, it also moves us closer to pulling roles out of the db and into hardcoded strings.

ref ENG-728
ref https://linear.app/tryghost/issue/ENG-728

The loadedPermissions were only used to check roles or whether an api key was
used. The later is already exposed on the `context` object, so we just need
to pass the role. This allows us to internally change how permissions are
loaded without having downstream effects, it also moves us closer to pulling
roles out of the db and into hardcoded strings.
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.

None yet

1 participant