Skip to content

Commit

Permalink
Merge branch 'main' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronshiel committed Oct 4, 2024
2 parents 08f00e5 + 22211a4 commit a62d452
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions client/src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) =>
Expand Down

0 comments on commit a62d452

Please sign in to comment.