|
|
|
|
@ -255,7 +255,7 @@ class OC { |
|
|
|
|
$tooBig = false; |
|
|
|
|
if (!$disableWebUpdater) { |
|
|
|
|
$apps = Server::get(\OCP\App\IAppManager::class); |
|
|
|
|
if ($apps->isInstalled('user_ldap')) { |
|
|
|
|
if ($apps->isEnabledForAnyone('user_ldap')) { |
|
|
|
|
$qb = Server::get(\OCP\IDBConnection::class)->getQueryBuilder(); |
|
|
|
|
|
|
|
|
|
$result = $qb->select($qb->func()->count('*', 'user_count')) |
|
|
|
|
@ -266,7 +266,7 @@ class OC { |
|
|
|
|
|
|
|
|
|
$tooBig = ($row['user_count'] > 50); |
|
|
|
|
} |
|
|
|
|
if (!$tooBig && $apps->isInstalled('user_saml')) { |
|
|
|
|
if (!$tooBig && $apps->isEnabledForAnyone('user_saml')) { |
|
|
|
|
$qb = Server::get(\OCP\IDBConnection::class)->getQueryBuilder(); |
|
|
|
|
|
|
|
|
|
$result = $qb->select($qb->func()->count('*', 'user_count')) |
|
|
|
|
@ -1130,11 +1130,11 @@ class OC { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected static function tryAppAPILogin(OCP\IRequest $request): bool { |
|
|
|
|
$appManager = Server::get(OCP\App\IAppManager::class); |
|
|
|
|
if (!$request->getHeader('AUTHORIZATION-APP-API')) { |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
if (!$appManager->isInstalled('app_api')) { |
|
|
|
|
$appManager = Server::get(OCP\App\IAppManager::class); |
|
|
|
|
if (!$appManager->isEnabledForAnyone('app_api')) { |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
try { |
|
|
|
|
|