From 6e19de32f72cf179a4e5d18891a371950244b6ee Mon Sep 17 00:00:00 2001 From: Dhruwang Jariwala <67850763+Dhruwang@users.noreply.github.com> Date: Fri, 16 Jan 2026 15:24:54 +0530 Subject: [PATCH] fix: org managers not able to access api keys (#7123) --- apps/web/modules/organization/settings/api-keys/page.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/web/modules/organization/settings/api-keys/page.tsx b/apps/web/modules/organization/settings/api-keys/page.tsx index 2ff05cf3d8..1d3f01cf3f 100644 --- a/apps/web/modules/organization/settings/api-keys/page.tsx +++ b/apps/web/modules/organization/settings/api-keys/page.tsx @@ -18,9 +18,9 @@ export const APIKeysPage = async (props) => { const projects = await getProjectsByOrganizationId(organization.id); - const isNotOwner = currentUserMembership.role !== "owner"; + const canAccessApiKeys = currentUserMembership.role === "owner" || currentUserMembership.role === "manager"; - if (isNotOwner) throw new Error(t("common.not_authorized")); + if (!canAccessApiKeys) throw new Error(t("common.not_authorized")); return ( @@ -38,7 +38,7 @@ export const APIKeysPage = async (props) => {