-
Notifications
You must be signed in to change notification settings - Fork 142
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
PHP Version
8.1
CodeIgniter4 Version
4.3.5
Shield Version
1.0.0-beta.7
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.
Anything else?
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working