Skip to content

Commit

Permalink
Security
Browse files Browse the repository at this point in the history
  • Loading branch information
datajohnson committed Aug 17, 2024
1 parent 40c7afa commit fb4e1eb
Show file tree
Hide file tree
Showing 11 changed files with 782 additions and 519 deletions.
2 changes: 2 additions & 0 deletions src/api/middleware/authorization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ export const UserRoleOptions = [
UserRoles.PEOPLE_EDITOR,
UserRoles.YRHP_EDITOR,
UserRoles.ADVANCED_MAPS,
UserRoles.INTERPRETIVE_SITES_EDITOR,
UserRoles.INTERPRETIVE_SITES_VIEWER,
];

export function authorize(roles: string[] = [], allowPending = false) {
Expand Down
2 changes: 2 additions & 0 deletions src/api/models/user-roles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@ export const UserRoles = {
PEOPLE_EDITOR: 'People Editor',
YRHP_EDITOR: 'YRHP Editor',
ADVANCED_MAPS: 'Advanced Mapping',
INTERPRETIVE_SITES_VIEWER: 'Interpretive Sites Viewer',
INTERPRETIVE_SITES_EDITOR: 'Interpretive Sites Editor',
};
Loading

0 comments on commit fb4e1eb

Please sign in to comment.