revert latest change

This commit is contained in:
hatim boufnichel 2024-04-10 17:28:43 +02:00
parent d0b7a8fd99
commit e0d534df47

View file

@ -96,9 +96,9 @@ export default class {
}
const user = await entityManager.getRepository(ApplicationUser).findOne({ where: { nostr_public_key: nostrPub } })
if (user) {
if (user.application.app_id !== application.app_id) {
throw new Error("tried to access a user of application:" + user.application.app_id + "from application:" + application.app_id)
}
//if (user.application.app_id !== application.app_id) {
// throw new Error("tried to access a user of application:" + user.application.app_id + "from application:" + application.app_id)
//}
return user
}
if (!application.allow_user_creation) {