check for explicit teamCreate permissions for global role in canCreateTeam

This commit is contained in:
Francis Cao committed 2026-01-22 11:53:11 -08:00
1 parent 8b2196b97a
commit a1efb2d86a
1 file changed
+1 -1
+1 -1
View File
@@ -16,7 +16,7 @@ export async function canCreateTeam({ user }: Auth) {
return true;
}
return !!user;
return hasPermission(user.role, PERMISSIONS.teamCreate);
}
export async function canUpdateTeam({ user }: Auth, teamId: string) {