Merge pull request #11495 from owncloud/apps-clearenableappscacheafterloadingauthapp

Clear enabled apps cache after loading authentication app
This commit is contained in:
Vincent Petry 2014-10-09 17:20:05 +02:00
commit c82e310e20
1 changed files with 7 additions and 0 deletions

View File

@ -93,6 +93,13 @@ class OC_App {
throw new \OC\NeedsUpdateException();
}
require_once $app . '/appinfo/app.php';
if (self::isType($app, array('authentication'))) {
// since authentication apps affect the "is app enabled for group" check,
// the enabled apps cache needs to be cleared to make sure that the
// next time getEnableApps() is called it will also include apps that were
// enabled for groups
self::$enabledAppsCache = array();
}
}
}