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:
Tillmann
2024-06-26 14:35:08 +09:00
committed by GitHub
parent f1372adc9d
commit 0cb1baf09a
73 changed files with 1211 additions and 37 deletions
@@ -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.
|
+20
View File
@@ -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"
]
}
]
}