37 lines
1.8 KiB
Plaintext
37 lines
1.8 KiB
Plaintext
fix: backend checkInvitedEmailNotFromSameOffice – allow self-invitation to other office
|
||
|
||
**Motivations :**
|
||
* Allow notary self-invitation to another office (sharedToOfficeUid ≠ sharedFromOfficeUid).
|
||
* Keep blocking invitation of a member of the same office as invited notary.
|
||
|
||
**Root causes :**
|
||
* checkInvitedEmailNotFromSameOffice treated any invited email belonging to target office as forbidden, without distinguishing self-invitation (same user, other office).
|
||
|
||
**Correctifs :**
|
||
* Add sharedToOfficeUid and userId to CheckInvitedEmailParams; detect isSelfInvitationToOtherOffice; allow (log info, return true) when self to other office; otherwise keep existing block and error message.
|
||
|
||
**Evolutions :**
|
||
* None.
|
||
|
||
**Page affectées :**
|
||
* lecoffre-back-main/src/app/api/notary/helpers/FolderSharingValidationHelper.ts
|
||
* CHANGELOG.md
|
||
* VERSION
|
||
|
||
État initial : checkInvitedEmailNotFromSameOffice blocked any invitation of an email belonging to target office.
|
||
Motivation du changement : Allow self-invitation to other office; keep blocking same-office member invitation.
|
||
Résolution : Params extended; isSelfInvitationToOtherOffice branch allows and logs; else unchanged.
|
||
Root cause : Rule did not consider same-person-different-office case.
|
||
Fonctionnalités impactées : Folder sharing, notary confrere invitation (backend).
|
||
Code modifié : FolderSharingValidationHelper.ts.
|
||
Documentation modifiée : CHANGELOG.md.
|
||
Configurations modifiées : Aucune.
|
||
Fichiers dans déploy modifiés : Aucun.
|
||
Fichiers dans logs impactés : Aucun.
|
||
Bases de données et autres sources modifiées : Aucune.
|
||
Modifications hors projet : Aucune.
|
||
fichiers dans .cursor/ modifiés : Aucun.
|
||
fichiers dans .secrets/ modifiés : Aucun.
|
||
nouvelle sous-sous-version dans VERSION : 2.0.98 → 2.0.99.
|
||
CHANGELOG.md mise à jour : oui.
|