mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-25 18:16:32 +00:00
feat(plugins): default declared capabilities to allow with scoped policy controls
This commit is contained in:
1 parent
677aac33b1
commit
643e71b17b
47 files changed
+1138
-200
No files matched your search
@@ -110,6 +110,7 @@ export default { activate(context) {
|
||||
await buildPluginPackage(packageRoot, archive);
|
||||
await service.manager.install(archive, { enable: true });
|
||||
const run = (name) => service.contributionService.executeCommand(`${id}.${name}`);
|
||||
service.permissionEngine.setMode({ id, manifest }, "network.stream", "ask");
|
||||
await assert.rejects(run("run"), /denied/u);
|
||||
assert.equal(service.byteStreamService.broker.connections.size, 0);
|
||||
allow = true;
|
||||
|
||||
Reference in new issue
Block a user