allow blocked users to sign up, block server join instead
deploy / build-and-deploy (push) Successful in 19s

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
bytedreamandClaude Opus 4.6 committed 2026-04-20 19:52:30 +02:00
1 parent 1d25e0ed59
commit 31ad92a6e2
7 files changed
+44 -19

No files matched your search

-11
View File
@@ -62,17 +62,6 @@ export const signup = {
}
}
// check if user is blocked
if (uuid) {
const blockedUser = await db.getBlockedUserByUuid({ uuid: uuid });
if (blockedUser) {
throw new ActionError({
code: 'FORBIDDEN',
message: 'Du bist für die Registrierung gesperrt'
});
}
}
await db.transaction(async (tx) => {
const user = await tx.addUser({
firstname: input.firstname,