| @@ 1040-1052 (lines=13) @@ | ||
| 1037 | * |
|
| 1038 | * @return bool |
|
| 1039 | */ |
|
| 1040 | public static function rememberLoginAllowed() { |
|
| 1041 | $apps = OC_App::getEnabledApps(); |
|
| 1042 | ||
| 1043 | foreach ($apps as $app) { |
|
| 1044 | $appInfo = OC_App::getAppInfo($app); |
|
| 1045 | if (isset($appInfo['rememberlogin']) && $appInfo['rememberlogin'] === 'false') { |
|
| 1046 | return false; |
|
| 1047 | } |
|
| 1048 | } |
|
| 1049 | return true; |
|
| 1050 | } |
|
| 1051 | ||
| 1052 | /** |
|
| 1053 | * Check if the user has administration privileges, redirects to home if not |
|
| 1054 | * |
|
| 1055 | * @return null|boolean $groups where the current user is subadmin |
|
| @@ 365-375 (lines=11) @@ | ||
| 362 | * |
|
| 363 | * @internal |
|
| 364 | */ |
|
| 365 | public function getAppInfo($appId) { |
|
| 366 | $appInfo = \OC_App::getAppInfo($appId); |
|
| 367 | if ($appInfo === null) { |
|
| 368 | return null; |
|
| 369 | } |
|
| 370 | if (!isset($appInfo['version'])) { |
|
| 371 | // read version from separate file |
|
| 372 | $appInfo['version'] = \OC_App::getAppVersion($appId); |
|
| 373 | } |
|
| 374 | return $appInfo; |
|
| 375 | } |
|
| 376 | ||
| 377 | /** |
|
| 378 | * Returns a list of apps incompatible with the given version |
|