Prevent system plugins from being uninstalled

This commit is contained in:
Neil Burrows
2020-06-22 10:13:28 +01:00
parent c3349038c4
commit c20400fa40
4 changed files with 25 additions and 1 deletions

View File

@@ -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