Compare commits
1 Commits
0a513d2350
...
18319b06b0
Author | SHA1 | Date | |
---|---|---|---|
18319b06b0 |
@ -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
|
||||||
|
@ -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';
|
||||||
|
Reference in New Issue
Block a user