Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
mattab committed Feb 18, 2014
2 parents d730096 + fbf1578 commit 4cfa7d6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
14 changes: 12 additions & 2 deletions plugins/CoreUpdater/CoreUpdater.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,15 @@ public static function updateComponents(Updater $updater, $componentsWithUpdateF
$errors = array();
$deactivatedPlugins = array();
$coreError = false;

if (!empty($componentsWithUpdateFile)) {

$currentAccess = Access::getInstance();
$hasSuperUserAccess = $currentAccess->hasSuperUserAccess();

if (!$hasSuperUserAccess) {
$currentAccess->setSuperUserAccess(true);
}

// if error in any core update, show message + help message + EXIT
// if errors in any plugins updates, show them on screen, disable plugins that errored + CONTINUE
// if warning in any core update or in any plugins update, show message + CONTINUE
Expand All @@ -62,6 +68,10 @@ public static function updateComponents(Updater $updater, $componentsWithUpdateF
}
}
}

if (!$hasSuperUserAccess) {
$currentAccess->setSuperUserAccess(false);
}
}

Filesystem::deleteAllCacheOnUpdate();
Expand Down
2 changes: 1 addition & 1 deletion tests/PHPUnit/UI
Submodule UI updated from 38d0e6 to 9531b0

0 comments on commit 4cfa7d6

Please sign in to comment.