Skip to content

Commit 7bf5584

Browse files
committed
Update AuthContextMcp.tsx
1 parent 214c240 commit 7bf5584

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/spaces/mcp/auth/AuthContextMcp.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export function AuthProviderMcp({ children, mcpUsers = [] }: { children: ReactNo
2323
const matchingRoleBinding = mcpUsers.find(
2424
(roleBinding) =>
2525
Array.isArray(roleBinding.subjects) &&
26+
!!userEmail &&
2627
roleBinding.subjects.some((subject) => subject?.name?.includes(userEmail ?? '')),
2728
);
2829
const hasMCPAdminRights = matchingRoleBinding?.role === 'admin';

0 commit comments

Comments
 (0)