From 3b21feb44b6cc2a5c15e0d07fd96136f5e88aab5 Mon Sep 17 00:00:00 2001 From: Victor Lyuboslavsky <2685025+getvictor@users.noreply.github.com> Date: Thu, 4 Sep 2025 07:25:13 -0500 Subject: [PATCH] Fixed missing ticket integration options in Policies -> Other workflows modal for teams. (#32551) Fixes #32550 # Checklist for submitter If some of the following don't apply, delete the relevant line. - [x] Changes file added for user-visible changes in `changes/`, `orbit/changes/` or `ee/fleetd-chrome/changes`. See [Changes files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/guides/committing-changes.md#changes-files) for more information. ## Testing - [x] QA'd all new/changed functionality manually ## Summary by CodeRabbit * **Bug Fixes** * Restores ticket integration options in Policies > Other workflows modal for team policies, ensuring available integrations are correctly shown. * Improves permission handling for managing policies, providing consistent access to add or delete policies across related workflows. --- changes/32550-missing-ticket-options | 1 + .../policies/ManagePoliciesPage/ManagePoliciesPage.tsx | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 changes/32550-missing-ticket-options diff --git a/changes/32550-missing-ticket-options b/changes/32550-missing-ticket-options new file mode 100644 index 0000000000..212a3b9d6e --- /dev/null +++ b/changes/32550-missing-ticket-options @@ -0,0 +1 @@ +* Fixed missing ticket integration options in Policies -> Other workflows modal for teams. diff --git a/frontend/pages/policies/ManagePoliciesPage/ManagePoliciesPage.tsx b/frontend/pages/policies/ManagePoliciesPage/ManagePoliciesPage.tsx index 1ad15866ec..a14af930e6 100644 --- a/frontend/pages/policies/ManagePoliciesPage/ManagePoliciesPage.tsx +++ b/frontend/pages/policies/ManagePoliciesPage/ManagePoliciesPage.tsx @@ -363,8 +363,7 @@ const ManagePolicyPage = ({ const canAddOrDeletePolicies = isGlobalAdmin || isGlobalMaintainer || isTeamMaintainer || isTeamAdmin; - const canManageAutomations = - isGlobalAdmin || isGlobalMaintainer || isTeamAdmin || isTeamMaintainer; + const canManageAutomations = canAddOrDeletePolicies; const { data: globalConfig, @@ -1338,7 +1337,10 @@ const ManagePolicyPage = ({ {automationsConfig && showOtherWorkflowsModal && (