lunarphp / lunar

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

Error after logging in a user without any permission #1951

Open ken717w opened 1 month ago

ken717w commented 1 month 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 1 month 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 1 month ago

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