mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-06-06 13:53:54 +02:00
Feat: Add default permissions to most plugins (#1460)
* Add default permissions to most plugins. Co-authored-by: chippers <chip@chip.sh> Co-authored-by: fabianlars <fabianlars@fabianlars.de> * updated default description * mobile plugin relevant changes --------- Co-authored-by: chippers <chip@chip.sh> Co-authored-by: fabianlars <fabianlars@fabianlars.de>
This commit is contained in:
@@ -24,3 +24,11 @@
|
||||
|`deny-set`|Denies the set command without any pre-configured scope.|
|
||||
|`allow-values`|Enables the values command without any pre-configured scope.|
|
||||
|`deny-values`|Denies the values command without any pre-configured scope.|
|
||||
|`default`|This permission set configures what kind of
|
||||
operations are available from the store plugin.
|
||||
|
||||
#### Granted Permissions
|
||||
|
||||
All operations are enabled by default.
|
||||
|
||||
|
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
"$schema" = "schemas/schema.json"
|
||||
|
||||
[default]
|
||||
description = """
|
||||
This permission set configures what kind of
|
||||
operations are available from the store plugin.
|
||||
|
||||
#### Granted Permissions
|
||||
|
||||
All operations are enabled by default.
|
||||
|
||||
"""
|
||||
permissions = [
|
||||
"allow-clear",
|
||||
"allow-delete",
|
||||
"allow-entries",
|
||||
"allow-get",
|
||||
"allow-has",
|
||||
"allow-keys",
|
||||
"allow-length",
|
||||
"allow-load",
|
||||
"allow-reset",
|
||||
"allow-save",
|
||||
"allow-set",
|
||||
"allow-values",
|
||||
]
|
||||
@@ -461,6 +461,13 @@
|
||||
"enum": [
|
||||
"deny-values"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "default -> This permission set configures what kind of\noperations are available from the store plugin.\n\n#### Granted Permissions\n\nAll operations are enabled by default.\n\n",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"default"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user