ProjectPolicy
class ProjectPolicy extends CachedPolicy
Traits
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
Wrapper for the Cache::remember function of the array cache.
Determine if the user can edit things created by other users in the given project.
Determine if user can remove the given project member from the given project.
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 37
bool
create(User $user)
Determine if the given user can create projects.
at line 49
bool
access(User $user, Project $project)
Determine if the given project can be accessed by the user.
at line 63
bool
editIn(User $user, Project $project)
Determine if the user can edit things in the given project.
at line 83
bool
forceEditIn(User $user, Project $project)
Determine if the user can edit things created by other users in the given project.
at line 100
bool
removeMember(User $user, Project $project, User $member)
Determine if user can remove the given project member from the given project.
at line 124
bool
update(User $user, Project $project)
Determine if the given project can be updated by the user.