Skip to content

Commit

Permalink
task: added release plan template permissions to permissions.ts (#8708)
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswk authored Nov 11, 2024
1 parent 60ae9ac commit 92f7acb
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/lib/types/permissions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,14 @@ export const PROJECT_USER_ACCESS_WRITE = 'PROJECT_USER_ACCESS_WRITE';
export const PROJECT_DEFAULT_STRATEGY_WRITE = 'PROJECT_DEFAULT_STRATEGY_WRITE';
export const PROJECT_CHANGE_REQUEST_WRITE = 'PROJECT_CHANGE_REQUEST_WRITE';
export const PROJECT_SETTINGS_WRITE = 'PROJECT_SETTINGS_WRITE';

export const RELEASE_PLAN_TEMPLATE_VIEW_OVERVIEW =
'RELEASE_PLAN_TEMPLATE_VIEW_OVERVIEW';
export const RELEASE_PLAN_TEMPLATE_VIEW = 'RELEASE_PLAN_TEMPLATE_VIEW';
export const RELEASE_PLAN_TEMPLATE_CREATE = 'RELEASE_PLAN_TEMPLATE_CREATE';
export const RELEASE_PLAN_TEMPLATE_UPDATE = 'RELEASE_PLAN_TEMPLATE_UPDATE';
export const RELEASE_PLAN_TEMPLATE_DELETE = 'RELEASE_PLAN_TEMPLATE_DELETE';

export const ROOT_PERMISSION_CATEGORIES = [
{
label: 'Addon',
Expand Down Expand Up @@ -123,4 +131,14 @@ export const ROOT_PERMISSION_CATEGORIES = [
label: 'Tag type',
permissions: [CREATE_TAG_TYPE, UPDATE_TAG_TYPE, DELETE_TAG_TYPE],
},
{
label: 'Release plan templates',
permissions: [
RELEASE_PLAN_TEMPLATE_VIEW_OVERVIEW,
RELEASE_PLAN_TEMPLATE_VIEW,
RELEASE_PLAN_TEMPLATE_CREATE,
RELEASE_PLAN_TEMPLATE_DELETE,
RELEASE_PLAN_TEMPLATE_UPDATE,
],
},
];

0 comments on commit 92f7acb

Please sign in to comment.