Passing null to the $user->can() method returns true #2077
Unanswered
DavidJapan
asked this question in
Q&A
Replies: 2 comments 3 replies
-
Just don't pass null |
Beta Was this translation helpful? Give feedback.
3 replies
-
laravel/framework#42139 (comment)
Mark this as answered |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I posted this question on Stackoverflow https://stackoverflow.com/questions/72014927/passing-null-to-the-user-can-method-returns-true. I was surprised to discover passing null to the $user->can() method returns true. Has anyone else noticed this behaviour? What did you do to prevent unintentional access to whatever functionality you were trying to protect?
Beta Was this translation helpful? Give feedback.
All reactions