Ghost icon indicating copy to clipboard operation
Ghost copied to clipboard

Replaced loadedPermissions with role

Open allouis opened this issue 1 year ago • 0 comments

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.

allouis avatar Mar 20 '24 19:03 allouis