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:
@@ -12,3 +12,11 @@
|
||||
|`deny-scan`|Denies the scan command without any pre-configured scope.|
|
||||
|`allow-vibrate`|Enables the vibrate command without any pre-configured scope.|
|
||||
|`deny-vibrate`|Denies the vibrate command without any pre-configured scope.|
|
||||
|`default`|This permission set configures which
|
||||
barcode scanning features are by default exposed.
|
||||
|
||||
#### Granted Permissions
|
||||
|
||||
It allows all barcode related features.
|
||||
|
||||
|
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
"$schema" = "schemas/schema.json"
|
||||
[default]
|
||||
description = """
|
||||
This permission set configures which
|
||||
barcode scanning features are by default exposed.
|
||||
|
||||
#### Granted Permissions
|
||||
|
||||
It allows all barcode related features.
|
||||
|
||||
"""
|
||||
|
||||
permissions = [
|
||||
"allow-cancel",
|
||||
"allow-check-permissions",
|
||||
"allow-open-app-settings",
|
||||
"allow-request-permissions",
|
||||
"allow-scan",
|
||||
"allow-vibrate",
|
||||
]
|
||||
@@ -377,6 +377,13 @@
|
||||
"enum": [
|
||||
"deny-vibrate"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "default -> This permission set configures which\nbarcode scanning features are by default exposed.\n\n#### Granted Permissions\n\nIt allows all barcode related features.\n\n",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"default"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user