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) {