diff --git a/frontend/pages/policies/PolicyPage/components/PolicyForm/PolicyForm.tsx b/frontend/pages/policies/PolicyPage/components/PolicyForm/PolicyForm.tsx index 73f8bc097b..6ff5ba22e5 100644 --- a/frontend/pages/policies/PolicyPage/components/PolicyForm/PolicyForm.tsx +++ b/frontend/pages/policies/PolicyPage/components/PolicyForm/PolicyForm.tsx @@ -171,6 +171,7 @@ const PolicyForm = ({ }, [lastEditedQueryBody, lastEditedQueryId]); const hasSavePermissions = + !isEditMode || // save a new policy isGlobalAdmin || isGlobalMaintainer || (isTeamAdmin && policyTeamId === storedPolicy?.team_id) || // team admin cannot save global policy