You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: can() returns an error when user is not logged in #750
Which operating systems have you tested for this bug?
Windows, Linux
Which server did you use?
apache
Database
MySQL
Did you customize Shield?
No
What happened?
When i want to check permissions with can() and the user is not logged in shield produces an error. I always have to check with loggedIn() before using can().
Steps to Reproduce
Try to get a permission for guests.
Expected Output
can() should return false if a user is not logged in. It would also be nice to handle guests as a usergroup so users not logged in can have permissions too.
Activity
kibcode commentedon Jun 12, 2023
Is there a good workaround i have missed so far?