Skip to content

Commit

Permalink
fix: incorrect validation for networking permission on Deno process (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
d-gubert authored Oct 31, 2024
1 parent c2a48e3 commit 3569b0a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changeset/nervous-rivers-fry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@rocket.chat/apps-engine': patch
'@rocket.chat/meteor': patch
---

Fixed an issue that would grant network permission to app's processes in wrong cases
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 3569b0a

Please sign in to comment.