From 6ff3fc5c6bb95a3bb4234499fbb5684a315ba1b4 Mon Sep 17 00:00:00 2001 From: Ketan Baitule <111437670+ketanbaitule@users.noreply.github.com> Date: Wed, 15 May 2024 15:03:46 +0530 Subject: [PATCH] fix: Allow Adding User Over Limit From Console In Team Membership --- app/controllers/api/teams.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/teams.php b/app/controllers/api/teams.php index 4cb2eb331f..98233d9efe 100644 --- a/app/controllers/api/teams.php +++ b/app/controllers/api/teams.php @@ -453,7 +453,7 @@ App::post('/v1/teams/:teamId/memberships') if (empty($invitee)) { // Create new user if no user with same email found $limit = $project->getAttribute('auths', [])['limit'] ?? 0; - if ($limit !== 0 && $project->getId() !== 'console') { // check users limit, console invites are allways allowed. + if (!$isPrivilegedUser && $limit !== 0 && $project->getId() !== 'console') { // check users limit, console invites are allways allowed. $total = $dbForProject->count('users', [], APP_LIMIT_USERS); if ($total >= $limit) {