feat: add Workflow resource to PBAC system with permission enforcement (#22845)
Co-authored-by: [email protected] <[email protected]> Co-authored-by: Carina Wollendorfer <[email protected]> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: CarinaWolli <[email protected]>
This commit is contained in:
18 files changed
+820
-139
No files matched your search
@@ -7,6 +7,7 @@ export enum Resource {
|
||||
Booking = "booking",
|
||||
Insights = "insights",
|
||||
Role = "role",
|
||||
Workflow = "workflow",
|
||||
}
|
||||
|
||||
export enum CrudAction {
|
||||
@@ -355,6 +356,42 @@ export const PERMISSION_REGISTRY: PermissionRegistry = {
|
||||
descriptionI18nKey: "pbac_desc_view_team_insights",
|
||||
},
|
||||
},
|
||||
[Resource.Workflow]: {
|
||||
_resource: {
|
||||
i18nKey: "pbac_resource_workflow",
|
||||
},
|
||||
[CrudAction.Create]: {
|
||||
description: "Create workflows",
|
||||
category: "workflow",
|
||||
i18nKey: "pbac_action_create",
|
||||
descriptionI18nKey: "pbac_desc_create_workflows",
|
||||
},
|
||||
[CrudAction.Read]: {
|
||||
description: "View workflows",
|
||||
category: "workflow",
|
||||
i18nKey: "pbac_action_read",
|
||||
descriptionI18nKey: "pbac_desc_view_workflows",
|
||||
},
|
||||
[CrudAction.Update]: {
|
||||
description: "Update workflows",
|
||||
category: "workflow",
|
||||
i18nKey: "pbac_action_update",
|
||||
descriptionI18nKey: "pbac_desc_update_workflows",
|
||||
},
|
||||
[CrudAction.Delete]: {
|
||||
description: "Delete workflows",
|
||||
category: "workflow",
|
||||
i18nKey: "pbac_action_delete",
|
||||
descriptionI18nKey: "pbac_desc_delete_workflows",
|
||||
},
|
||||
[CrudAction.Manage]: {
|
||||
description: "Manage workflows",
|
||||
category: "workflow",
|
||||
i18nKey: "pbac_action_manage",
|
||||
descriptionI18nKey: "pbac_desc_manage_workflows",
|
||||
scope: [Scope.Organization],
|
||||
},
|
||||
},
|
||||
[Resource.Attributes]: {
|
||||
_resource: {
|
||||
i18nKey: "pbac_resource_attributes",
|
||||
|
||||
Reference in new issue
Block a user