Compare commits

..

1 Commits

Author SHA1 Message Date
18319b06b0 fix admin dashboard team edit
All checks were successful
deploy / build-and-deploy (/testvaro, /opt/website-test, website-test) (push) Successful in 29s
deploy / build-and-deploy (/varo, /opt/website, website) (push) Successful in 13s
2025-06-10 11:27:22 +02:00
2 changed files with 2 additions and 12 deletions

View File

@ -66,9 +66,8 @@ export const signup = {
}); });
} }
let memberUuid;
try { try {
memberUuid = await getJavaUuid(input.teamMember); await getJavaUuid(input.teamMember);
} catch (_) { } catch (_) {
throw new ActionError({ throw new ActionError({
code: 'NOT_FOUND', code: 'NOT_FOUND',
@ -86,15 +85,6 @@ export const signup = {
}); });
} }
} }
if (memberUuid) {
const blockedUser = await db.getBlockedUserByUuid({ uuid: memberUuid });
if (blockedUser) {
throw new ActionError({
code: 'FORBIDDEN',
message: 'Dein Mitspieler ist für die Registrierung gesperrt. Bitte suche dir einen anderen Mitspieler'
});
}
}
if (!teamDraft) { if (!teamDraft) {
// check if a team with the same name already exists // check if a team with the same name already exists

View File

@ -1,5 +1,5 @@
<script lang="ts"> <script lang="ts">
import { deleteTeam, editTeam, type Team, teams } from '@app/admin/teams/teams.ts'; import {deleteTeam, editTeam, type Team, teams} from '@app/admin/teams/teams.ts';
import DataTable from '@components/admin/table/DataTable.svelte'; import DataTable from '@components/admin/table/DataTable.svelte';
import CrudPopup from '@components/admin/popup/CrudPopup.svelte'; import CrudPopup from '@components/admin/popup/CrudPopup.svelte';
import { confirmPopupState } from '@components/popup/ConfirmPopup.ts'; import { confirmPopupState } from '@components/popup/ConfirmPopup.ts';