Skip to content
Snippets Groups Projects
Commit c82e310e authored by Vincent Petry's avatar Vincent Petry
Browse files

Merge pull request #11495 from owncloud/apps-clearenableappscacheafterloadingauthapp

Clear enabled apps cache after loading authentication app
parents 0de60c51 36d22825
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment