aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Updates
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2020-06-22 15:23:35 +0200
committerGitHub <noreply@github.com>2020-06-22 15:23:35 +0200
commit464066f362a475aac46ce8162360d8d2cbe86b15 (patch)
tree2e56a5e8585714de8f71d989c436a0fa4226a7b2 /Emby.Server.Implementations/Updates
parenta3bc82727a0213c8deb018fe8288e0ff10ef16b3 (diff)
parent0bab57ebbcbd39d5479e3df6b37bd41b340640e5 (diff)
Merge pull request #3411 from neilsb/system-plugin-removal
Prevent system plugins from being uninstalled
Diffstat (limited to 'Emby.Server.Implementations/Updates')
-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 b1bab8cdd..4eed79c4c 100644
--- a/Emby.Server.Implementations/Updates/InstallationManager.cs
+++ b/Emby.Server.Implementations/Updates/InstallationManager.cs
@@ -406,6 +406,12 @@ namespace Emby.Server.Implementations.Updates
/// <param name="plugin">The plugin.</param>
public void UninstallPlugin(IPlugin plugin)
{
+ if (!plugin.CanUninstall)
+ {
+ _logger.LogWarning("Attempt to delete non removable plugin {0}, ignoring request", plugin.Name);
+ return;
+ }
+
plugin.OnUninstalling();
// Remove it the quick way for now