Menambah izin per perintah atau per fungsi

This commit is contained in:
rizky_denianto committed 2026-07-16 00:32:16 +07:00
1 parent b7ceeccb52
commit c72c86c984
14 files changed
+234 -35

No files matched your search

@@ -0,0 +1,13 @@
# Automatically generated - DO NOT EDIT!
"$schema" = "../../schemas/schema.json"
[[permission]]
identifier = "allow-cek-izin"
description = "Enables the cek_izin command without any pre-configured scope."
commands.allow = ["cek_izin"]
[[permission]]
identifier = "deny-cek-izin"
description = "Denies the cek_izin command without any pre-configured scope."
commands.deny = ["cek_izin"]
@@ -0,0 +1,13 @@
# Automatically generated - DO NOT EDIT!
"$schema" = "../../schemas/schema.json"
[[permission]]
identifier = "allow-daftar-perangkat"
description = "Enables the daftar_perangkat command without any pre-configured scope."
commands.allow = ["daftar_perangkat"]
[[permission]]
identifier = "deny-daftar-perangkat"
description = "Denies the daftar_perangkat command without any pre-configured scope."
commands.deny = ["daftar_perangkat"]
@@ -0,0 +1,13 @@
# Automatically generated - DO NOT EDIT!
"$schema" = "../../schemas/schema.json"
[[permission]]
identifier = "allow-kirim"
description = "Enables the kirim command without any pre-configured scope."
commands.allow = ["kirim"]
[[permission]]
identifier = "deny-kirim"
description = "Denies the kirim command without any pre-configured scope."
commands.deny = ["kirim"]
@@ -0,0 +1,13 @@
# Automatically generated - DO NOT EDIT!
"$schema" = "../../schemas/schema.json"
[[permission]]
identifier = "allow-minta-izin"
description = "Enables the minta_izin command without any pre-configured scope."
commands.allow = ["minta_izin"]
[[permission]]
identifier = "deny-minta-izin"
description = "Denies the minta_izin command without any pre-configured scope."
commands.deny = ["minta_izin"]
@@ -1,13 +0,0 @@
# Automatically generated - DO NOT EDIT!
"$schema" = "../../schemas/schema.json"
[[permission]]
identifier = "allow-ping"
description = "Enables the ping command without any pre-configured scope."
commands.allow = ["ping"]
[[permission]]
identifier = "deny-ping"
description = "Denies the ping command without any pre-configured scope."
commands.deny = ["ping"]
+86 -5
View File
@@ -4,7 +4,10 @@ Default permissions for the plugin
#### This default permission set includes the following:
- `allow-ping`
- `cek_izin`
- `minta_izin`
- `daftar_perangkat`
- `kirim`
## Permission Table
@@ -18,12 +21,12 @@ Default permissions for the plugin
<tr>
<td>
`bluclas:allow-ping`
`bluclas:allow-cek-izin`
</td>
<td>
Enables the ping command without any pre-configured scope.
Enables the cek_izin command without any pre-configured scope.
</td>
</tr>
@@ -31,12 +34,90 @@ Enables the ping command without any pre-configured scope.
<tr>
<td>
`bluclas:deny-ping`
`bluclas:deny-cek-izin`
</td>
<td>
Denies the ping command without any pre-configured scope.
Denies the cek_izin command without any pre-configured scope.
</td>
</tr>
<tr>
<td>
`bluclas:allow-daftar-perangkat`
</td>
<td>
Enables the daftar_perangkat command without any pre-configured scope.
</td>
</tr>
<tr>
<td>
`bluclas:deny-daftar-perangkat`
</td>
<td>
Denies the daftar_perangkat command without any pre-configured scope.
</td>
</tr>
<tr>
<td>
`bluclas:allow-kirim`
</td>
<td>
Enables the kirim command without any pre-configured scope.
</td>
</tr>
<tr>
<td>
`bluclas:deny-kirim`
</td>
<td>
Denies the kirim command without any pre-configured scope.
</td>
</tr>
<tr>
<td>
`bluclas:allow-minta-izin`
</td>
<td>
Enables the minta_izin command without any pre-configured scope.
</td>
</tr>
<tr>
<td>
`bluclas:deny-minta-izin`
</td>
<td>
Denies the minta_izin command without any pre-configured scope.
</td>
</tr>
+6 -1
View File
@@ -1,3 +1,8 @@
[default]
description = "Default permissions for the plugin"
permissions = ["allow-ping"]
permissions = [
"cek_izin",
"minta_izin",
"daftar_perangkat",
"kirim"
]
+44 -8
View File
@@ -295,22 +295,58 @@
"type": "string",
"oneOf": [
{
"description": "Enables the ping command without any pre-configured scope.",
"description": "Enables the cek_izin command without any pre-configured scope.",
"type": "string",
"const": "allow-ping",
"markdownDescription": "Enables the ping command without any pre-configured scope."
"const": "allow-cek-izin",
"markdownDescription": "Enables the cek_izin command without any pre-configured scope."
},
{
"description": "Denies the ping command without any pre-configured scope.",
"description": "Denies the cek_izin command without any pre-configured scope.",
"type": "string",
"const": "deny-ping",
"markdownDescription": "Denies the ping command without any pre-configured scope."
"const": "deny-cek-izin",
"markdownDescription": "Denies the cek_izin command without any pre-configured scope."
},
{
"description": "Default permissions for the plugin\n#### This default permission set includes:\n\n- `allow-ping`",
"description": "Enables the daftar_perangkat command without any pre-configured scope.",
"type": "string",
"const": "allow-daftar-perangkat",
"markdownDescription": "Enables the daftar_perangkat command without any pre-configured scope."
},
{
"description": "Denies the daftar_perangkat command without any pre-configured scope.",
"type": "string",
"const": "deny-daftar-perangkat",
"markdownDescription": "Denies the daftar_perangkat command without any pre-configured scope."
},
{
"description": "Enables the kirim command without any pre-configured scope.",
"type": "string",
"const": "allow-kirim",
"markdownDescription": "Enables the kirim command without any pre-configured scope."
},
{
"description": "Denies the kirim command without any pre-configured scope.",
"type": "string",
"const": "deny-kirim",
"markdownDescription": "Denies the kirim command without any pre-configured scope."
},
{
"description": "Enables the minta_izin command without any pre-configured scope.",
"type": "string",
"const": "allow-minta-izin",
"markdownDescription": "Enables the minta_izin command without any pre-configured scope."
},
{
"description": "Denies the minta_izin command without any pre-configured scope.",
"type": "string",
"const": "deny-minta-izin",
"markdownDescription": "Denies the minta_izin command without any pre-configured scope."
},
{
"description": "Default permissions for the plugin\n#### This default permission set includes:\n\n- `cek_izin`\n- `minta_izin`\n- `daftar_perangkat`\n- `kirim`",
"type": "string",
"const": "default",
"markdownDescription": "Default permissions for the plugin\n#### This default permission set includes:\n\n- `allow-ping`"
"markdownDescription": "Default permissions for the plugin\n#### This default permission set includes:\n\n- `cek_izin`\n- `minta_izin`\n- `daftar_perangkat`\n- `kirim`"
}
]
}