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:
@@ -16,3 +16,12 @@
|
||||
|`deny-platform`|Denies the platform command without any pre-configured scope.|
|
||||
|`allow-version`|Enables the version command without any pre-configured scope.|
|
||||
|`deny-version`|Denies the version command without any pre-configured scope.|
|
||||
|`default`|This permission set configures which
|
||||
operating system information are available
|
||||
to gather from the frontend.
|
||||
|
||||
#### Granted Permissions
|
||||
|
||||
All information except the host name are available.
|
||||
|
||||
|
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
"$schema" = "schemas/schema.json"
|
||||
|
||||
[default]
|
||||
description = """
|
||||
This permission set configures which
|
||||
operating system information are available
|
||||
to gather from the frontend.
|
||||
|
||||
#### Granted Permissions
|
||||
|
||||
All information except the host name are available.
|
||||
|
||||
"""
|
||||
|
||||
permissions = [
|
||||
"allow-arch",
|
||||
"allow-exe-extension",
|
||||
"allow-family",
|
||||
"allow-locale",
|
||||
"allow-os-type",
|
||||
"allow-platform",
|
||||
"allow-version",
|
||||
]
|
||||
@@ -405,6 +405,13 @@
|
||||
"enum": [
|
||||
"deny-version"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "default -> This permission set configures which\noperating system information are available\nto gather from the frontend.\n\n#### Granted Permissions\n\nAll information except the host name are available.\n\n",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"default"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user