VolumePolicy
class VolumePolicy extendsCachedPolicy
Traits
HandlesAuthorization
Constants
TIME |
Time to store the cached values. (is irrelevant for the array store) |
Properties
protectedCache | $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
forceEditIn(User$user,Volume$volume)
Determine if the user can edit things created by other users in the given volume.
QueryBuilder
Details
inCachedPolicyat line31
__construct()
Create a new CachedPolicy.
inCachedPolicyat line43
mixed
remember(string$key,callable$callback)
Wrapper for the Cache::remember function of the array cache.
at line22
bool|null
before(User$user,string$ability)
Intercept all checks.
at line36
bool
access(User$user,Volume$volume)
Determine if the given volume can be accessed by the user.
at line50
bool
editIn(User$user,Volume$volume)
Determine if the user can edit something in the given volume.
at line70
bool
forceEditIn(User$user,Volume$volume)
Determine if the user can edit things created by other users in the given volume.
at line86
bool
update(User$user,Volume$volume)
Determine if the given volume can be updated by the user.