ProjectPolicy
class ProjectPolicy extendsCachedPolicy
Traits
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
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
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 line35
bool
create(User$user)
Determine if the given user can create projects.
at line47
bool
access(User$user,Project$project)
Determine if the given project can be accessed by the user.
at line61
bool
editIn(User$user,Project$project)
Determine if the user can edit things in the given project.
at line81
bool
forceEditIn(User$user,Project$project)
Determine if the user can edit things created by other users in the given project.
at line98
bool
removeMember(User$user,Project$project,User$member)
Determine if user can remove the given project member from the given project.
at line122
bool
update(User$user,Project$project)
Determine if the given project can be updated by the user.