VolumePolicy
class VolumePolicy extends CachedPolicy
Traits
HandlesAuthorization
Constants
TIME |
Time to store the cached values. (is irrelevant for the array store) |
Properties
protected Cache | $cache | The cache instance to use for caching policies. |
from CachedPolicy |
Methods
mixed
remember(string $key, callable $callback)
Wrapper for the Cache::remember function of the array cache.
from
CachedPolicy
bool
bool
forceEditIn(User $user, Volume $volume)
Determine if the user can edit things created by other users in the given volume.
Builder
Details
in
CachedPolicy at line 31
__construct()
Create a new CachedPolicy.
in
CachedPolicy at line 43
mixed
remember(string $key, callable $callback)
Wrapper for the Cache::remember function of the array cache.
at line 22
bool|null
before(User $user, string $ability)
Intercept all checks.
at line 38
bool
access(User $user, Volume $volume)
Determine if the given volume can be accessed by the user.
at line 52
bool
editIn(User $user, Volume $volume)
Determine if the user can edit something in the given volume.
at line 72
bool
forceEditIn(User $user, Volume $volume)
Determine if the user can edit things created by other users in the given volume.
at line 88
bool
update(User $user, Volume $volume)
Determine if the given volume can be updated by the user.