class AccessTokenPolicy extends AbstractPolicy
Constants
GLOBAL |
|
ALLOW |
|
DENY |
|
FORCE_ALLOW |
|
FORCE_DENY |
|
Methods
string|null
from AbstractPolicy
string|null
sanitizeResult(string|bool|null $result)
<p>Allows <code>true</code> to be used in place of <code>->allow()</code>, and <code>false</code> instead of <code>->deny()</code> This allows more concise and intuitive code, by returning boolean statements:.</p>
from AbstractPolicy
Details
in AbstractPolicy
at
line 23
protected string
allow()
in AbstractPolicy
at
line 28
protected string
deny()
in AbstractPolicy
at
line 33
protected string
forceAllow()
in AbstractPolicy
at
line 38
protected string
forceDeny()
in AbstractPolicy
at
line 43
string|null
checkAbility(User $actor, string $ability, AbstractModel|null $instance)
in AbstractPolicy
at
line 73
string|null
sanitizeResult(string|bool|null $result)
<p>Allows <code>true</code> to be used in place of <code>->allow()</code>, and <code>false</code> instead of <code>->deny()</code> This allows more concise and intuitive code, by returning boolean statements:.</p>
<p>WITHOUT THIS: `return SOME_BOOLEAN_LOGIC ? $this->allow() : $this->deny();</p> <p>WITH THIS: `return SOME_BOOLEAN_LOGIC;</p>