Allow view-only to still join team

Closes #3764
This commit is contained in:
Francis Cao
2025-11-21 14:43:58 -08:00
parent ffa97d34e2
commit 94321192b8

View File

@@ -18,7 +18,7 @@ export function TeamsHeader({
return (
<PageHeader title={formatMessage(labels.teams)}>
<Row gap="3">
{allowJoin && user.role !== ROLES.viewOnly && <TeamsJoinButton />}
{allowJoin && <TeamsJoinButton />}
{allowCreate && user.role !== ROLES.viewOnly && <TeamsAddButton />}
</Row>
</PageHeader>