mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
shipped and 3rd-party apps of type authentication and session will remain enabled during update
This commit is contained in:
parent
bbf7f56f94
commit
fe7e7677e9
1 changed files with 11 additions and 3 deletions
|
|
@ -367,10 +367,18 @@ class Updater extends BasicEmitter {
|
|||
OC_App::disable($app);
|
||||
$this->emit('\OC\Updater', 'incompatibleAppDisabled', array($app));
|
||||
}
|
||||
if (!OC_App::isShipped($app)) {
|
||||
\OC_App::disable($app);
|
||||
$this->emit('\OC\Updater', 'thirdPartyAppDisabled', array($app));
|
||||
// shipped apps will remain enabled
|
||||
if (OC_App::isShipped($app)) {
|
||||
continue;
|
||||
}
|
||||
// authentication and session apps will remain enabled as well
|
||||
if (OC_App::isType($app, ['session', 'authentication'])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// disable any other 3rd party apps
|
||||
\OC_App::disable($app);
|
||||
$this->emit('\OC\Updater', 'thirdPartyAppDisabled', array($app));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue