1
0
Fork 0
mirror of synced 2024-06-14 00:34:51 +12:00
This commit is contained in:
Ketan Baitule 2024-05-16 18:02:24 +05:30 committed by GitHub
commit 810e72368b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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 && !$isAppUser && $limit !== 0 && $project->getId() !== 'console') { // check users limit, console invites are allways allowed.
$total = $dbForProject->count('users', [], APP_LIMIT_USERS);
if ($total >= $limit) {