diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-09-02 14:30:46 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-09-04 18:02:49 +0200 |
commit | 81c4043d616883be038fd7d8ec1955cb0116ea54 (patch) | |
tree | 150d5de5e56ab6c3aa99b96fb9e7e99681925d59 /core | |
parent | bd5796a0d1b674de9e2707a7bd2837fc71cb3d55 (diff) | |
download | nextcloud-server-81c4043d616883be038fd7d8ec1955cb0116ea54.tar.gz nextcloud-server-81c4043d616883be038fd7d8ec1955cb0116ea54.zip |
Fix upgrade process when apps enabled for specific groups
Fix issue where the currently logged user was causing side-effects when
upgrading.
Now setting incognito mode (no user) on update to make sure the whole
apps list is taken into account with getEnabledApps() or isEnabled().
Diffstat (limited to 'core')
-rw-r--r-- | core/ajax/update.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/ajax/update.php b/core/ajax/update.php index 627ada080c8..1e280a82227 100644 --- a/core/ajax/update.php +++ b/core/ajax/update.php @@ -3,6 +3,10 @@ set_time_limit(0); require_once '../../lib/base.php'; if (OC::checkUpgrade(false)) { + // if a user is currently logged in, their session must be ignored to + // avoid side effects + \OC_User::setIncognitoMode(true); + $l = new \OC_L10N('core'); $eventSource = new OC_EventSource(); $updater = new \OC\Updater(\OC_Log::$object); |