Skip to content

Commit 5cd29b9

Browse files
authored
fix(site): show admin controls to org owners (#221)
1 parent 0f1110f commit 5cd29b9

File tree

1 file changed

+3
-1
lines changed
  • internal/site/app/(app)/[organization]/~/people

1 file changed

+3
-1
lines changed

internal/site/app/(app)/[organization]/~/people/page.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ export default async function Page({
2929
getUser(session.user.id),
3030
]);
3131

32-
const isAdmin = organization.membership?.role === "admin";
32+
const isAdmin =
33+
organization.membership?.role === "admin" ||
34+
organization.membership?.role === "owner";
3335
const isPersonal = organization.id === user.organization_id;
3436

3537
return (

0 commit comments

Comments
 (0)