Add role permissions for webhooks (#742)

This commit is contained in:
Boy132 2024-12-02 23:53:35 +01:00 committed by GitHub
parent 1337767049
commit bd51191da6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 0 deletions

View File

@ -13,4 +13,5 @@ enum RolePermissionModels: string
case Role = 'role';
case Server = 'server';
case User = 'user';
case Webhook = 'webhook';
}

View File

@ -0,0 +1,10 @@
<?php
namespace App\Policies;
class WebhookConfigurationPolicy
{
use DefaultPolicies;
protected string $modelName = 'webhook';
}