From ee75808a5d6fc5d0bba5f11ba7b452f8a53ebe3e Mon Sep 17 00:00:00 2001 From: Tarun Vishwakarma Date: Fri, 28 Feb 2025 18:36:11 +0530 Subject: [PATCH] changes in documentation for fs and http in scope.mdx --- src/content/docs/security/scope.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/content/docs/security/scope.mdx b/src/content/docs/security/scope.mdx index 086b280ea0..cc164d5d0c 100644 --- a/src/content/docs/security/scope.mdx +++ b/src/content/docs/security/scope.mdx @@ -14,8 +14,8 @@ The scope type needs be of any [`serde`](https://docs.rs/serde/latest/serde/) se These types are plugin-specific in general. For scoped commands implemented in a Tauri application the scope type needs to be defined in the application and then enforced in the command implementation. -For instance, the [`Fs`](https://github.com/tauri-apps/plugins-workspace/tree/plugins/fs) plugin allows you to use scopes to allow or deny certain directories and files -and the [`http`](https://github.com/tauri-apps/plugins-workspace/tree/plugins/http) plugin uses scopes to filter URLs that are allowed to be reached. +For instance, the [`Fs`](https://github.com/tauri-apps/plugins-workspace/tree/v2/plugins/fs) plugin allows you to use scopes to allow or deny certain directories and files +and the [`http`](https://github.com/tauri-apps/plugins-workspace/tree/v2/plugins/http) plugin uses scopes to filter URLs that are allowed to be reached. The scope is passed to the command and handling or properly enforcing is implemented by the command itself. @@ -29,7 +29,7 @@ The scope validation implementation should be audited to ensure correctness. ## Examples -These examples are taken from the [`Fs`](https://github.com/tauri-apps/plugins-workspace/tree/plugins/fs) plugin permissions: +These examples are taken from the [`Fs`](https://github.com/tauri-apps/plugins-workspace/tree/v2/plugins/fs) plugin permissions: The scope type in this plugin for all commands is a string, which contains a [`glob`](https://docs.rs/glob/latest/glob/) compatible path.