From 9c0960a90eb19f147d5af6ae3772f232b49dbe06 Mon Sep 17 00:00:00 2001 From: Jeremy Defferrard Date: Wed, 11 Sep 2024 14:27:18 +0200 Subject: [PATCH] feat: cannot enroll failure message --- src/constants/messages.ts | 2 ++ src/langs/en/messages.json | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/constants/messages.ts b/src/constants/messages.ts index 1910837a..852671bf 100644 --- a/src/constants/messages.ts +++ b/src/constants/messages.ts @@ -124,6 +124,8 @@ export const FAILURE_MESSAGES = { CANNOT_CREATE_MEMBERSHIP_CAUSE_ITEM_LOGIN_SCHEMA_EXISTS: 'CANNOT_CREATE_MEMBERSHIP_CAUSE_ITEM_LOGIN_SCHEMA_EXISTS', CANNOT_MODIFY_GUEST_ITEM_MEMBERSHIP: 'CANNOT_MODIFY_GUEST_ITEM_MEMBERSHIP', + CANNOT_ENROLL_ITEM_WITHOUT_ITEM_LOGIN_SCHEMA: + 'CANNOT_ENROLL_ITEM_WITHOUT_ITEM_LOGIN_SCHEMA', }; export const DEFAULT_FAILURE_MESSAGE = FAILURE_MESSAGES.UNEXPECTED_ERROR; diff --git a/src/langs/en/messages.json b/src/langs/en/messages.json index 3427c3b9..81fc5f0e 100644 --- a/src/langs/en/messages.json +++ b/src/langs/en/messages.json @@ -145,5 +145,6 @@ "NOT_A_GUEST": "Your account is not registered as a valid pseudonimized user", "ACCOUNT_NOT_FOUND": "An account was not found", "CANNOT_CREATE_MEMBERSHIP_CAUSE_ITEM_LOGIN_SCHEMA_EXISTS": "You cannot request a membership because the targeted ressource allows pseudonimized users", - "CANNOT_MODIFY_GUEST_ITEM_MEMBERSHIP": "Cannot modify the permission of targeted account because it is a pseudonimized user" + "CANNOT_MODIFY_GUEST_ITEM_MEMBERSHIP": "Cannot modify the permission of targeted account because it is a pseudonymized user", + "CANNOT_ENROLL_ITEM_WITHOUT_ITEM_LOGIN_SCHEMA": "Cannot enroll in the targeted item because it doesn't allow pseudonymized users" }