TappNetwork / filament-webhook-client

MIT License
5 stars 0 forks source link

[Bug]: Unable to restrict Webhook Resource to admin #7

Open ddoddsr opened 1 week ago

ddoddsr commented 1 week ago

What happened?

Cannot restrict resource to just admin panel

How to reproduce the bug

add a minimal role user . can still see the Webhook resource.

Package Version

1.0.1

PHP Version

8.2

Laravel Version

11

Which operating systems does with happen with?

macOS, Linux

Notes

No response

swilla commented 1 week ago

You need to create your own policy in your codebase, then update this line in the config to point to your policy: https://github.com/TappNetwork/filament-webhook-client/blob/main/config/filament-webhook-client.php#L14

ddoddsr commented 1 week ago

This was my mistake, looking at the wrong config for webhooks. Thanks for the direction