feat(fs): scope-*-recursive permission allows read dir, closes #1307 (#1696)

We could instead document that you should also enable `scope-*-index`, it is more a matter of semantics.
This commit is contained in:
Lucas Fernandes Nogueira
2024-08-27 14:17:30 -03:00
committed by GitHub
parent 01c913e83e
commit 0d5e7e2892
27 changed files with 135 additions and 26 deletions
+5 -1
View File
@@ -111,6 +111,8 @@ fn main() {
identifier = "scope-{lower}-recursive"
description = "This scope permits recursive access to the complete `${upper}` folder, including sub directories and files."
[[permission.scope.allow]]
path = "${upper}"
[[permission.scope.allow]]
path = "${upper}/**"
@@ -118,6 +120,8 @@ path = "${upper}/**"
identifier = "scope-{lower}"
description = "This scope permits access to all files and list content of top level directories in the `${upper}`folder."
[[permission.scope.allow]]
path = "${upper}"
[[permission.scope.allow]]
path = "${upper}/*"
@@ -126,7 +130,7 @@ identifier = "scope-{lower}-index"
description = "This scope permits to list all files and folders in the `${upper}`folder."
[[permission.scope.allow]]
path = "${upper}/"
path = "${upper}"
# Sets Section
# This section combines the scope elements with enablement of commands