mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-07-28 17:38:53 +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:
co-authored by
chippers
fabianlars
parent
f1372adc9d
commit
0cb1baf09a
@@ -6,3 +6,13 @@
|
||||
|`deny-enable`|Denies the enable command without any pre-configured scope.|
|
||||
|`allow-is-enabled`|Enables the is_enabled command without any pre-configured scope.|
|
||||
|`deny-is-enabled`|Denies the is_enabled command without any pre-configured scope.|
|
||||
|`default`|This permission set configures if your
|
||||
application can enable or disable auto
|
||||
starting the application on boot.
|
||||
|
||||
#### Granted Permissions
|
||||
|
||||
It allows all to check, enable and
|
||||
disable the automatic start on boot.
|
||||
|
||||
|
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
"$schema" = "schemas/schema.json"
|
||||
[default]
|
||||
description = """
|
||||
This permission set configures if your
|
||||
application can enable or disable auto
|
||||
starting the application on boot.
|
||||
|
||||
#### Granted Permissions
|
||||
|
||||
It allows all to check, enable and
|
||||
disable the automatic start on boot.
|
||||
|
||||
"""
|
||||
|
||||
permissions = [
|
||||
"allow-enable",
|
||||
"allow-disable",
|
||||
"allow-is-enabled",
|
||||
]
|
||||
@@ -335,6 +335,13 @@
|
||||
"enum": [
|
||||
"deny-is-enabled"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "default -> This permission set configures if your\napplication can enable or disable auto\nstarting the application on boot.\n\n#### Granted Permissions\n\nIt allows all to check, enable and\ndisable the automatic start on boot.\n\n",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"default"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user