mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 01:18:42 +00:00
Fleet UI: Ability to save new policies (team admin/team maintainer) (#11776)
This commit is contained in:
parent
8829b84a63
commit
791183bb66
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue