Skip to content
Snippets Groups Projects
Unverified Commit 3569b0a9 authored by Douglas Gubert's avatar Douglas Gubert Committed by GitHub
Browse files

fix: incorrect validation for networking permission on Deno process (#33786)

parent c2a48e3d
No related branches found
No related tags found
No related merge requests found
---
'@rocket.chat/apps-engine': patch
'@rocket.chat/meteor': patch
---
Fixed an issue that would grant network permission to app's processes in wrong cases
......@@ -132,7 +132,7 @@ export class DenoRuntimeSubprocessController extends EventEmitter {
// If the app doesn't request any permissions, it gets the default set of permissions, which includes "networking"
// If the app requests specific permissions, we need to check whether it requests "networking" or not
if (!this.appPackage.info.permissions || this.appPackage.info.permissions.findIndex((p) => p.name === 'networking.default')) {
if (!this.appPackage.info.permissions || this.appPackage.info.permissions.findIndex((p) => p.name === 'networking.default') !== -1) {
hasNetworkingPermission = true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment