ImageLabelPolicy
class ImageLabelPolicy 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
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 line40
bool
destroy(User$user,ImageLabel$imageLabel)
Determine if the user can delete the given image label.
If the user created the image label, they must be editor or admin of one of the projects, the image belongs to. If another user created it, they must be admin of one of the projects.