lib/private/App/AppManager.php 1 location
|
@@ 361-371 (lines=11) @@
|
| 358 |
|
* |
| 359 |
|
* @internal |
| 360 |
|
*/ |
| 361 |
|
public function getAppInfo($appId) { |
| 362 |
|
$appInfo = \OC_App::getAppInfo($appId); |
| 363 |
|
if ($appInfo === null) { |
| 364 |
|
return null; |
| 365 |
|
} |
| 366 |
|
if (!isset($appInfo['version'])) { |
| 367 |
|
// read version from separate file |
| 368 |
|
$appInfo['version'] = \OC_App::getAppVersion($appId); |
| 369 |
|
} |
| 370 |
|
return $appInfo; |
| 371 |
|
} |
| 372 |
|
|
| 373 |
|
/** |
| 374 |
|
* Returns a list of apps incompatible with the given version |
lib/private/legacy/util.php 1 location
|
@@ 1058-1070 (lines=13) @@
|
| 1055 |
|
* |
| 1056 |
|
* @return bool |
| 1057 |
|
*/ |
| 1058 |
|
public static function rememberLoginAllowed() { |
| 1059 |
|
|
| 1060 |
|
$apps = OC_App::getEnabledApps(); |
| 1061 |
|
|
| 1062 |
|
foreach ($apps as $app) { |
| 1063 |
|
$appInfo = OC_App::getAppInfo($app); |
| 1064 |
|
if (isset($appInfo['rememberlogin']) && $appInfo['rememberlogin'] === 'false') { |
| 1065 |
|
return false; |
| 1066 |
|
} |
| 1067 |
|
|
| 1068 |
|
} |
| 1069 |
|
return true; |
| 1070 |
|
} |
| 1071 |
|
|
| 1072 |
|
/** |
| 1073 |
|
* Check if the user has administration privileges, redirects to home if not |