Added optional plugin check in PluginInstaller (#11318)
parent
0dd5811583
commit
b781031413
|
@ -50,7 +50,7 @@ class PluginInstaller extends LibraryInstaller
|
||||||
{
|
{
|
||||||
// fail install process early if it is going to fail due to a plugin not being allowed
|
// fail install process early if it is going to fail due to a plugin not being allowed
|
||||||
if (($type === 'install' || $type === 'update') && !$this->getPluginManager()->arePluginsDisabled('local')) {
|
if (($type === 'install' || $type === 'update') && !$this->getPluginManager()->arePluginsDisabled('local')) {
|
||||||
$this->getPluginManager()->isPluginAllowed($package->getName(), false);
|
$this->getPluginManager()->isPluginAllowed($package->getName(), false, $package->getExtra()['plugin-optional'] ?? false);
|
||||||
}
|
}
|
||||||
|
|
||||||
return parent::prepare($type, $package, $prevPackage);
|
return parent::prepare($type, $package, $prevPackage);
|
||||||
|
|
Loading…
Reference in New Issue