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

Error after logging in a user without any permission #1951

Open
ken717w opened this issue Sep 14, 2024 · 2 comments
Open

Error after logging in a user without any permission #1951

ken717w opened this issue Sep 14, 2024 · 2 comments
Labels
bug Something isn't working unconfirmed

Comments

@ken717w
Copy link

ken717w commented Sep 14, 2024

  • 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 ken717w added bug Something isn't working unconfirmed labels Sep 14, 2024
@alecritson
Copy link
Collaborator

@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
Copy link
Contributor

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

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

No branches or pull requests

3 participants