summaryrefslogtreecommitdiff
path: root/cli/permissions.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/permissions.rs')
-rw-r--r--cli/permissions.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/cli/permissions.rs b/cli/permissions.rs
index 1864e4f37..06a33096f 100644
--- a/cli/permissions.rs
+++ b/cli/permissions.rs
@@ -626,6 +626,16 @@ impl Permissions {
}
}
+impl deno_fetch::FetchPermissions for Permissions {
+ fn check_net_url(&self, url: &url::Url) -> Result<(), AnyError> {
+ Permissions::check_net_url(self, url)
+ }
+
+ fn check_read(&self, p: &PathBuf) -> Result<(), AnyError> {
+ Permissions::check_read(self, p)
+ }
+}
+
/// Shows the permission prompt and returns the answer according to the user input.
/// This loops until the user gives the proper input.
#[cfg(not(test))]