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
I think the new tiered levels of response in the policies system is well worth it, but is also somewhat inconvenient: I have already forgotten to return one of those 2 variables multiple times. Returning a boolean expression is much more than returning boolean expression ? $this->allow() : $this->deny(). Perhaps AbstractPolicy should treat false as $this->deny() and true as $this->allow()?
The text was updated successfully, but these errors were encountered:
I would be in favor, mainly because it would allow us to directly return expressions like before, which is more straightforward and simple, and it just seems to be the way any developer would expect it to be. Also, since we now have the ALLOW and DENY constants, the change would be very simple.
Feature Request
I think the new tiered levels of response in the policies system is well worth it, but is also somewhat inconvenient: I have already forgotten to return one of those 2 variables multiple times. Returning a boolean expression is much more than returning
boolean expression ? $this->allow() : $this->deny()
. PerhapsAbstractPolicy
should treatfalse
as$this->deny()
andtrue
as$this->allow()
?The text was updated successfully, but these errors were encountered: