Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ddoddsr opened this issue Nov 13, 2024 · 2 comments
Open

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

ddoddsr opened this issue Nov 13, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@ddoddsr
Copy link

ddoddsr commented Nov 13, 2024

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

@ddoddsr ddoddsr added the bug Something isn't working label Nov 13, 2024
@swilla
Copy link
Member

swilla commented Nov 13, 2024

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
Copy link
Author

ddoddsr commented Nov 13, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants