IsCreatorOrOrganMember
in package
implements
AssertionInterface
Assertion to check if the user has created the resource or if the user is a member of the organ tied to the resource.
Table of Contents
Interfaces
- AssertionInterface
Methods
- assert() : bool
- Returns true if and only if the assertion conditions are met.
Methods
assert()
Returns true if and only if the assertion conditions are met.
public
assert(Acl $acl[, RoleInterface|null $role = null ][, ResourceInterface|null $resource = null ][, string|null $privilege = null ]) : bool
This method is passed the ACL, Role, Resource, and privilege to which the authorization query applies. If the $role, $resource, or $privilege parameters are null, it means that the query applies to all Roles, Resources, or privileges, respectively.
Parameters
- $acl : Acl
- $role : RoleInterface|null = null
- $resource : ResourceInterface|null = null
- $privilege : string|null = null