mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-04-21 11:26:15 +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:
@@ -8,3 +8,14 @@
|
||||
|`deny-load`|Denies the load command without any pre-configured scope.|
|
||||
|`allow-select`|Enables the select command without any pre-configured scope.|
|
||||
|`deny-select`|Denies the select command without any pre-configured scope.|
|
||||
|`default`|# Tauri SQL Default Permissions
|
||||
|
||||
This permission set configures what kind of
|
||||
database operations are available from the sql plugin.
|
||||
|
||||
### Granted Permissions
|
||||
|
||||
All reading related operations are enabled.
|
||||
Also allows to load or close a connection.
|
||||
|
||||
|
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
"$schema" = "schemas/schema.json"
|
||||
|
||||
[default]
|
||||
description = """
|
||||
# Tauri SQL Default Permissions
|
||||
|
||||
This permission set configures what kind of
|
||||
database operations are available from the sql plugin.
|
||||
|
||||
### Granted Permissions
|
||||
|
||||
All reading related operations are enabled.
|
||||
Also allows to load or close a connection.
|
||||
|
||||
"""
|
||||
permissions = [
|
||||
"allow-close",
|
||||
"allow-load",
|
||||
"allow-select",
|
||||
]
|
||||
@@ -349,6 +349,13 @@
|
||||
"enum": [
|
||||
"deny-select"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "default -> # Tauri SQL Default Permissions\n\nThis permission set configures what kind of\ndatabase operations are available from the sql plugin.\n\n### Granted Permissions\n\nAll reading related operations are enabled.\nAlso allows to load or close a connection.\n\n",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"default"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user