diff options
author | Andy Finch <andyfinch7@gmail.com> | 2019-12-03 12:22:51 -0500 |
---|---|---|
committer | Ry Dahl <ry@tinyclouds.org> | 2019-12-03 12:22:51 -0500 |
commit | 00844b41428a73d3fb3fd06ba3e564b4e1e3c63c (patch) | |
tree | 699dae17491fd24fd3d96631c6561b58ff91b799 | |
parent | cfa4f540baac5beaf168de3e818c882ccbd95136 (diff) |
fix some typos in permissions (#3436)
-rw-r--r-- | cli/permissions.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/permissions.rs b/cli/permissions.rs index 37d6dd3ca..8bad2f795 100644 --- a/cli/permissions.rs +++ b/cli/permissions.rs @@ -217,7 +217,7 @@ impl DenoPermissions { if check_path_white_list(path, &self.read_whitelist) { return PermissionState::Allow; }; - self.allow_write.request(&match path { + self.allow_read.request(&match path { None => "Deno requests read access.".to_string(), Some(path) => format!("Deno requests read access to \"{}\".", path), }) @@ -238,7 +238,7 @@ impl DenoPermissions { url: &Option<&str>, ) -> Result<PermissionState, ErrBox> { if self.get_state_net_url(url)? == PermissionState::Ask { - return Ok(self.allow_run.request(&match url { + return Ok(self.allow_net.request(&match url { None => "Deno requests network access.".to_string(), Some(url) => format!("Deno requests network access to \"{}\".", url), })); |