Skip to content

Commit

Permalink
Add role permissions for webhooks (#742)
Browse files Browse the repository at this point in the history
  • Loading branch information
Boy132 authored Dec 2, 2024
1 parent 1337767 commit bd51191
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/Enums/RolePermissionModels.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ enum RolePermissionModels: string
case Role = 'role';
case Server = 'server';
case User = 'user';
case Webhook = 'webhook';
}
10 changes: 10 additions & 0 deletions app/Policies/WebhookConfigurationPolicy.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

namespace App\Policies;

class WebhookConfigurationPolicy
{
use DefaultPolicies;

protected string $modelName = 'webhook';
}

0 comments on commit bd51191

Please sign in to comment.