lunarphp/lunar

Error after logging in a user without any permission

ken717w opened this issue · 2 comments

  • Lunar version: 1.0.0-beta.1
  • Laravel Version: 11.22.0
  • PHP Version: 8.3.11
  • Database Driver & Version: MySQL 8.0.32

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.

@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?

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