Update user.context.tsx

This commit is contained in:
Enno Gelhaus 2025-08-01 14:56:53 +02:00 committed by GitHub
parent 47e1795503
commit 894dfdbd34
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -19,7 +19,6 @@ export const UserContext = createContext<
impersonate: boolean;
allowTrial: boolean;
isTrailing: boolean;
admin?: boolean; // Add admin field from backend response
})
>(undefined);
export const ContextWrapper: FC<{
@ -49,7 +48,6 @@ export const ContextWrapper: FC<{
orgId: user.orgId,
role: user.role,
tier: user.tier,
admin: user.admin, // Use admin field from backend response
});
} else {
setSentryUserContext(null);