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

Update WhitelistRangeMiddleware.php #10

Open
wants to merge 1 commit into
base: 2.x
Choose a base branch
from

Conversation

matthewmnewman
Copy link

When the firewall is disabled by setting FIREWALL_ENABLED=false and the WhitelistRangeMiddleware is in use, access to the panel is blocked. This update adds a check to ensure the firewall is enabled before applying restrictions. Note that this only impacts the panel if the middleware is applied in the Filament Panel Provider, which is a valid use case.

Check if the base package firewall is enabled or disabled.  If it is disabled then skip returns true.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant