Skip to content

Commit 3808504

Browse files
src: add permission flag to config file
1 parent a2c66aa commit 3808504

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

doc/node-config-schema.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -652,6 +652,9 @@
652652
},
653653
"allow-worker": {
654654
"type": "boolean"
655+
},
656+
"permission": {
657+
"type": "boolean"
655658
}
656659
}
657660
},

src/node_options.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,8 @@ EnvironmentOptionsParser::EnvironmentOptionsParser() {
599599
"enable the permission system",
600600
&EnvironmentOptions::permission,
601601
kAllowedInEnvvar,
602-
false);
602+
false,
603+
OptionNamespaces::kPermissionNamespace);
603604
AddOption("--allow-fs-read",
604605
"allow permissions to read the filesystem",
605606
&EnvironmentOptions::allow_fs_read,

0 commit comments

Comments
 (0)