aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Updates/InstallationManager.cs
diff options
context:
space:
mode:
authorNeil Burrows <neil.burrows@nvable.com>2020-06-22 10:13:28 +0100
committerNeil Burrows <neil.burrows@nvable.com>2020-06-22 10:13:28 +0100
commitc20400fa40d88329b1187aed84ead66e8cae4dde (patch)
tree68f9785d9b8aaad9956defdc36a18cd23c05f7c1 /Emby.Server.Implementations/Updates/InstallationManager.cs
parentc3349038c4270c65caa46b148ef6802f083e5e19 (diff)
Prevent system plugins from being uninstalled
Diffstat (limited to 'Emby.Server.Implementations/Updates/InstallationManager.cs')
-rw-r--r--Emby.Server.Implementations/Updates/InstallationManager.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/Updates/InstallationManager.cs b/Emby.Server.Implementations/Updates/InstallationManager.cs
index 80326fddf..0e912dfe9 100644
--- a/Emby.Server.Implementations/Updates/InstallationManager.cs
+++ b/Emby.Server.Implementations/Updates/InstallationManager.cs
@@ -402,6 +402,12 @@ namespace Emby.Server.Implementations.Updates
/// <param name="plugin">The plugin.</param>
public void UninstallPlugin(IPlugin plugin)
{
+ if (!plugin.CanUninstall)
+ {
+ _logger.LogInformation("Attempt to delete non removable plugin {0}", plugin.Name);
+ return;
+ }
+
plugin.OnUninstalling();
// Remove it the quick way for now