stable

Clone or download

Read-only

feat: warn if restricted user cannot be added as member

Context: * `tuleap config-set sys_user_approval 1` * platform with restricted users * A private project Alice invite `bob@example.com` in the project. Bob registers and wait for admin approval. Site admin flags the user as Restricted while activating Bob. Alice will receive an email explaining that we cannot add Bob to the project since he is restricted. Part of story #30021: Invite buddies to my Tuleap project Change-Id: I45a7a5236a4341fa0e6a1b3925e419e1d761a124

Modified Files

Name
M site-content/fr_FR/LC_MESSAGES/tuleap-core.po +20 −0 Go to diff View file
M site-content/pt_BR/LC_MESSAGES/tuleap-core.po +15 −0 Go to diff View file
A src/common/InviteBuddy/CannotAddRestrictedUserToProjectNotAllowingRestrictedPresenter.php +38 −0 Go to diff View file
M src/common/InviteBuddy/InvitationEmailNotifier.php +37 −3 Go to diff View file
M src/common/InviteBuddy/ProjectMemberAccordingToInvitationAdder.php +14 −4 Go to diff View file
M src/common/InviteBuddy/REST/v1/InvitationsResource.php +2 −1 Go to diff View file
M src/common/Request/RouteCollector.php +3 −2 Go to diff View file
A src/templates/invite_buddy/cannot-add-restricted-text.mustache +20 −0 Go to diff View file
A src/templates/invite_buddy/cannot-add-restricted.mustache +23 −0 Go to diff View file
M src/www/admin/approve_pending_users.php +2 −1 Go to diff View file
M tests/unit/common/InviteBuddy/AccountCreationFeedbackTest.php +11 −0 Go to diff View file
M tests/unit/common/InviteBuddy/ProjectMemberAccordingToInvitationAdderTest.php +114 −34 Go to diff View file