Skip to content

Commit

Permalink
feat: cannot enroll failure message (#522)
Browse files Browse the repository at this point in the history
Co-authored-by: Kim Lan Phan Hoang <[email protected]>
  • Loading branch information
Defferrard and pyphilia authored Sep 13, 2024
1 parent b18b40f commit 95523fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/constants/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 2 additions & 1 deletion src/langs/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

0 comments on commit 95523fe

Please sign in to comment.