ia_dev/.smartIde/pousse-commit-msg-lecoffreio-now.txt
Nicolas Cantu 285e72039e chore: rename .cursor to .smartIde for agents, rules, hooks
Update internal references and .gitignore ssh_config path.
Gateway and docs paths use .smartIde/agents.
2026-04-03 18:23:10 +02:00

37 lines
1.8 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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 .smartIde/ 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.