From 22211a418baf828369335e9468430e16717f8b27 Mon Sep 17 00:00:00 2001 From: aaronshiel Date: Fri, 4 Oct 2024 14:01:25 -0700 Subject: [PATCH] supers see all orgs in dropdown --- client/src/helpers.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/src/helpers.ts b/client/src/helpers.ts index 39daecf2..4d5fff72 100644 --- a/client/src/helpers.ts +++ b/client/src/helpers.ts @@ -503,6 +503,12 @@ export function isAdmin(user?: User): boolean { } export function managesOrg(org: Organization, user: User): boolean { + if ( + user.userRole === UserRole.SUPER_ADMIN || + user.userRole === UserRole.SUPER_CONTENT_MANAGER + ) { + return true; + } return Boolean( org.members.find( (m) =>