lunarphp / lunar

An open-source package that brings the power of modern headless e-commerce functionality to Laravel.
https://lunarphp.io
MIT License
2.57k stars 337 forks source link

Error after logging in a user without any permission #1951

Open ken717w opened 1 week ago

ken717w commented 1 week ago

Expected Behaviour:

Either displaying an empty dashboard or a message telling the current user has no access.

Actual Behaviour:

A 503 internal server error from vendor/filament/filament/src/Navigation/NavigationManager.php:63:

Call to a member function keyBy() on null

Steps To Reproduce:

Create a new staff user without assigning any role and permission, then login this new user.

alecritson commented 4 days ago

@ken717w I couldn't reproduce this one. Do you have any more information on your set up? Are you extending the panel in any way?

glennjacobs commented 3 days ago

Are you creating the Staff user in the admin panel or programmatically?