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:
@@ -10,3 +10,12 @@
|
||||
|`deny-open`|Denies the open command without any pre-configured scope.|
|
||||
|`allow-save`|Enables the save command without any pre-configured scope.|
|
||||
|`deny-save`|Denies the save command without any pre-configured scope.|
|
||||
|`default`|This permission set configures the types of dialogs
|
||||
available from the dialog plugin.
|
||||
|
||||
#### Granted Permissions
|
||||
|
||||
All dialog types are enabled.
|
||||
|
||||
|
||||
|
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
"$schema" = "schemas/schema.json"
|
||||
|
||||
[default]
|
||||
description = """
|
||||
This permission set configures the types of dialogs
|
||||
available from the dialog plugin.
|
||||
|
||||
#### Granted Permissions
|
||||
|
||||
All dialog types are enabled.
|
||||
|
||||
|
||||
"""
|
||||
permissions = [
|
||||
"allow-ask",
|
||||
"allow-confirm",
|
||||
"allow-message",
|
||||
"allow-save",
|
||||
"allow-open",
|
||||
]
|
||||
@@ -363,6 +363,13 @@
|
||||
"enum": [
|
||||
"deny-save"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "default -> This permission set configures the types of dialogs\navailable from the dialog plugin.\n\n#### Granted Permissions\n\nAll dialog types are enabled.\n\n\n",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"default"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user