diff options
author | crowlKats <13135287+crowlKats@users.noreply.github.com> | 2021-03-17 22:45:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-17 17:45:12 -0400 |
commit | 0e70d9e59bc0e70f1921bb217ee00fc2e6facb69 (patch) | |
tree | d501399bd07855148ce817c568e7228bdfd87d87 /runtime/ops/runtime.rs | |
parent | b3fe85163f303a1592335b23c25554dd0e39a4c4 (diff) |
refactor: clean up permission handling (#9367)
Diffstat (limited to 'runtime/ops/runtime.rs')
-rw-r--r-- | runtime/ops/runtime.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/ops/runtime.rs b/runtime/ops/runtime.rs index a2f377bed..420931b0c 100644 --- a/runtime/ops/runtime.rs +++ b/runtime/ops/runtime.rs @@ -32,7 +32,8 @@ fn op_main_module( let main_path = std::env::current_dir().unwrap().join(main_url.to_string()); state .borrow::<Permissions>() - .check_read_blind(&main_path, "main_module")?; + .read + .check_blind(&main_path, "main_module")?; } Ok(json!(&main)) } |