From a82868b9d00935ea28b85de56337e8e728d0cdbc Mon Sep 17 00:00:00 2001 From: Boy132 Date: Sun, 1 Dec 2024 17:04:08 +0100 Subject: [PATCH] add role permissions for webhooks --- app/Enums/RolePermissionModels.php | 1 + app/Policies/WebhookConfigurationPolicy.php | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 app/Policies/WebhookConfigurationPolicy.php diff --git a/app/Enums/RolePermissionModels.php b/app/Enums/RolePermissionModels.php index 36b7913b73..0699109576 100644 --- a/app/Enums/RolePermissionModels.php +++ b/app/Enums/RolePermissionModels.php @@ -13,4 +13,5 @@ enum RolePermissionModels: string case Role = 'role'; case Server = 'server'; case User = 'user'; + case Webhook = 'webhook'; } diff --git a/app/Policies/WebhookConfigurationPolicy.php b/app/Policies/WebhookConfigurationPolicy.php new file mode 100644 index 0000000000..d956943012 --- /dev/null +++ b/app/Policies/WebhookConfigurationPolicy.php @@ -0,0 +1,10 @@ +