mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-28 10:24:45 +02:00
Add role permissions for webhooks (#742)
This commit is contained in:
parent
1337767049
commit
bd51191da6
@ -13,4 +13,5 @@ enum RolePermissionModels: string
|
||||
case Role = 'role';
|
||||
case Server = 'server';
|
||||
case User = 'user';
|
||||
case Webhook = 'webhook';
|
||||
}
|
||||
|
10
app/Policies/WebhookConfigurationPolicy.php
Normal file
10
app/Policies/WebhookConfigurationPolicy.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace App\Policies;
|
||||
|
||||
class WebhookConfigurationPolicy
|
||||
{
|
||||
use DefaultPolicies;
|
||||
|
||||
protected string $modelName = 'webhook';
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user