Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions doc/api/permissions.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ const config = fs.readFileSync('/etc/myapp/config.json', 'utf8');
// Drop read access to /etc/myapp after initialization
process.permission.drop('fs.read', '/etc/myapp');

// This will now throw ERR_ACCESS_DENIED
// This will now return false
process.permission.has('fs.read', '/etc/myapp/config.json'); // false

// Drop child process permission entirely
Expand Down Expand Up @@ -212,7 +212,7 @@ $ node --permission index.js
* `index.js` will be included in the allowed file system read list

```console
$ node -r /path/to/custom-require.js --permission index.js.
$ node -r /path/to/custom-require.js --permission index.js
```

* `/path/to/custom-require.js` will be included in the allowed file system read
Expand Down
Loading