Skip to content

Commit bd51191

Browse files
authored
Add role permissions for webhooks (#742)
1 parent 1337767 commit bd51191

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

app/Enums/RolePermissionModels.php

+1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ enum RolePermissionModels: string
1313
case Role = 'role';
1414
case Server = 'server';
1515
case User = 'user';
16+
case Webhook = 'webhook';
1617
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
namespace App\Policies;
4+
5+
class WebhookConfigurationPolicy
6+
{
7+
use DefaultPolicies;
8+
9+
protected string $modelName = 'webhook';
10+
}

0 commit comments

Comments
 (0)