stable

Clone or download

Read-only

check quota: disable the button, add the check on REST route

part of story #16633: invite buddies to my Tuleap How to test: define a limit on your server with a user try to send email by passing this limit: => rest route does not allow it => invite button is disbaled on ui, and a tooltip explain to user why he can no longer invite his buddies given user can send only one invitation, if he tries to send 2 invitations, then the rest route won't allow him to send them, he'll have to choose which buddy he prefer to invite if user is under limit, works like before Change-Id: I1aca0abd9edc4a8968f51f8b6db9952bfddad3bb

Modified Files

Name
M site-content/fr_FR/LC_MESSAGES/tuleap-core.po +29 −0 Go to diff View file
M src/common/InviteBuddy/InvitationDao.php +9 −0 Go to diff View file
A src/common/InviteBuddy/InvitationLimitChecker.php +94 −0 Go to diff View file
M src/common/InviteBuddy/InvitationSender.php +0 −1 Go to diff View file
M src/common/InviteBuddy/InvitationSenderGateKeeper.php +8 −1 Go to diff View file
A src/common/InviteBuddy/InviteBuddiesPresenter.php +74 −0 Go to diff View file
M src/common/InviteBuddy/REST/v1/InvitationsResource.php +10 −3 Go to diff View file
M src/scripts/BurningParrot/src/invite-buddies.ts +8 −0 Go to diff View file
M src/themes/BurningParrot/include/HeaderPresenter.php +5 −4 Go to diff View file
M src/themes/BurningParrot/include/HeaderPresenterBuilder.php +2 −2 Go to diff View file
M src/themes/BurningParrot/templates/invite-buddies-modal.mustache +70 −68 Go to diff View file
M src/themes/BurningParrot/templates/navbar/navbar.mustache +17 −11 Go to diff View file
M src/themes/FlamingParrot/include/NavBarPresenter.class.php +6 −6 Go to diff View file
M src/themes/FlamingParrot/templates/navbar.mustache +17 −11 Go to diff View file
M src/www/themes/FlamingParrot/FlamingParrot_Theme.class.php +4 −4 Go to diff View file
M tests/rest/lib/TuleapConfig.php +1 −1 Go to diff View file
A tests/unit/common/InviteBuddy/InvitationLimitCheckerTest.php +98 −0 Go to diff View file
M tests/unit/common/InviteBuddy/InvitationSenderGateKeeperTest.php +25 −1 Go to diff View file
M tests/unit/common/InviteBuddy/InvitationSenderTest.php +16 −1 Go to diff View file