Skip to content

Commit 8667da5

Browse files
feat(orchestrator): fix up
Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
1 parent 42deabf commit 8667da5

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

workspaces/orchestrator/plugins/orchestrator-common/src/permissions.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,6 @@ export const orchestratorWorkflowPermission = createPermission({
2626
resourceType: ORCHESTRATOR_WORKFLOW_RESOURCE_TYPE,
2727
});
2828

29-
export const orchestratorWorkflowUsePermission = createPermission({
30-
name: 'orchestrator.workflow.use',
31-
attributes: {
32-
action: 'update',
33-
},
34-
resourceType: ORCHESTRATOR_WORKFLOW_RESOURCE_TYPE,
35-
});
36-
3729
/**
3830
* @deprecated Use conditional policies with IS_ALLOWED_WORKFLOW_ID rule instead.
3931
* These permissions could only be created via CSV policy files or REST API, not through the RBAC UI.
@@ -47,6 +39,14 @@ export const orchestratorWorkflowSpecificPermission = (workflowId: string) =>
4739
},
4840
});
4941

42+
export const orchestratorWorkflowUsePermission = createPermission({
43+
name: 'orchestrator.workflow.use',
44+
attributes: {
45+
action: 'update',
46+
},
47+
resourceType: ORCHESTRATOR_WORKFLOW_RESOURCE_TYPE,
48+
});
49+
5050
/**
5151
* @deprecated Use conditional policies with IS_ALLOWED_WORKFLOW_ID rule instead.
5252
* These permissions could only be created via CSV policy files or REST API, not through the RBAC UI.

0 commit comments

Comments
 (0)