Skip to content

Commit

Permalink
fix: add managecontent role to hassomeadminroles
Browse files Browse the repository at this point in the history
  • Loading branch information
Petter Andersson committed Dec 13, 2023
1 parent 16948df commit 702a434
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/auth/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ export const hasSomeAdminRoles = (r: HaffaUserRoles): boolean =>
r.canEditSystemLoginPolicies ||
r.canEditTerms ||
r.canRunSystemJobs ||
r.canSeeSystemStatistics
r.canSeeSystemStatistics ||
r.canManageContent
)

export const rolesToRolesArray = (roles?: HaffaUserRoles) =>
Expand Down

0 comments on commit 702a434

Please sign in to comment.