1
0
Fork 0
mirror of synced 2024-06-13 16:24:47 +12:00

fix: Allow Adding User Over Limit From Console In Team Membership

This commit is contained in:
Ketan Baitule 2024-05-15 15:03:46 +05:30
parent af68383f8f
commit 6ff3fc5c6b

View file

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