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:
RachelElysia 2023-07-14 12:58:20 -04:00 committed by GitHub
parent b803bbe5bf
commit 07f8cb107f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);