Only allow updates from the same repo or main repo (#992)

This commit is contained in:
goat 2022-09-01 00:30:38 +02:00 committed by GitHub
parent 26835467ea
commit b6d08d5b8f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1234,6 +1234,7 @@ internal partial class PluginManager : IDisposable, IServiceType
var updates = this.AvailablePlugins
.Where(remoteManifest => plugin.Manifest.InternalName == remoteManifest.InternalName)
.Where(remoteManifest => plugin.Manifest.InstalledFromUrl == remoteManifest.SourceRepo.PluginMasterUrl || !remoteManifest.SourceRepo.IsThirdParty)
.Select(remoteManifest =>
{
var useTesting = UseTesting(remoteManifest);