mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
Fix: 12743 observer plus (#12772)
## Issue Cerra #12743 ## Fix of the fix - Fix of team observer + was catching global observer + # Checklist for submitter If some of the following don't apply, delete the relevant line. - [x] Manual QA for all new/changed functionality
This commit is contained in:
parent
b803bbe5bf
commit
07f8cb107f
1 changed files with 1 additions and 1 deletions
|
|
@ -585,7 +585,7 @@ const QueryForm = ({
|
|||
const noEditPermissions =
|
||||
(isGlobalObserver && !isObserverPlus) || // Global observer but not Observer+
|
||||
(isObserverPlus && queryIdForEdit !== 0) || // Global observer+ on existing query
|
||||
(isOnlyObserver && !isAnyTeamObserverPlus) || // Only team observer but not team Observer+
|
||||
(isOnlyObserver && !isAnyTeamObserverPlus && !isGlobalObserver) || // Only team observer but not team Observer+
|
||||
(isAnyTeamObserverPlus && // Team Observer+ on existing query
|
||||
!isAnyTeamMaintainerOrTeamAdmin &&
|
||||
queryIdForEdit !== 0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue