summaryrefslogtreecommitdiffstats
path: root/core/ajax
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-09-02 14:30:46 +0200
committerVincent Petry <pvince81@owncloud.com>2014-09-02 17:16:14 +0200
commite05b95636b975dd119b19c14b48f291341464a19 (patch)
tree351906de1faefacf8d355ba7f9e1d23aa6df8ea5 /core/ajax
parent689bbbe937a56c2975160a6ba6d4ca55fdc54e3b (diff)
downloadnextcloud-server-e05b95636b975dd119b19c14b48f291341464a19.tar.gz
nextcloud-server-e05b95636b975dd119b19c14b48f291341464a19.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/ajax')
-rw-r--r--core/ajax/update.php4
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);