mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-23 01:05:19 +03:00
Prevent system plugins from being uninstalled
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user