Merge pull request #1162 from balena-io/no-cross-app-deltas

Don't allow cross-app delta requests
This commit is contained in:
CameronDiver 2019-12-16 15:07:01 +00:00 committed by GitHub
commit 422aa5ef21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -774,9 +774,6 @@ module.exports = class ApplicationManager extends EventEmitter
for availableImage in available
if availableImage.serviceName == image.serviceName and availableImage.appId == image.appId
return availableImage.name
for availableImage in available
if availableImage.serviceName == image.serviceName
return availableImage.name
for availableImage in available
if availableImage.appId == image.appId
return availableImage.name