mirror of
https://github.com/tauri-apps/tauri-plugin-process.git
synced 2026-01-31 00:55:17 +01: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> Committed via a GitHub action: https://github.com/tauri-apps/plugins-workspace/actions/runs/9674143364 Co-authored-by: amrbashir <amrbashir@users.noreply.github.com>
This commit is contained in:
@@ -4,3 +4,11 @@
|
||||
|`deny-exit`|Denies the exit command without any pre-configured scope.|
|
||||
|`allow-restart`|Enables the restart command without any pre-configured scope.|
|
||||
|`deny-restart`|Denies the restart command without any pre-configured scope.|
|
||||
|`default`|This permission set configures which
|
||||
process feeatures are by default exposed.
|
||||
|
||||
#### Granted Permissions
|
||||
|
||||
This enables to quit via `allow-exit` and restart via `allow-restart`
|
||||
the application.
|
||||
|
|
||||
|
||||
17
permissions/default.toml
Normal file
17
permissions/default.toml
Normal file
@@ -0,0 +1,17 @@
|
||||
"$schema" = "schemas/schema.json"
|
||||
|
||||
[default]
|
||||
description = """
|
||||
This permission set configures which
|
||||
process feeatures are by default exposed.
|
||||
|
||||
#### Granted Permissions
|
||||
|
||||
This enables to quit via `allow-exit` and restart via `allow-restart`
|
||||
the application.
|
||||
"""
|
||||
|
||||
permissions = [
|
||||
"allow-exit",
|
||||
"allow-restart",
|
||||
]
|
||||
@@ -321,6 +321,13 @@
|
||||
"enum": [
|
||||
"deny-restart"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "default -> This permission set configures which\nprocess feeatures are by default exposed.\n\n#### Granted Permissions\n\nThis enables to quit via `allow-exit` and restart via `allow-restart`\nthe application.\n",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"default"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user