Documentation

IsOrganMember
in package
implements AssertionInterface

Assertion to check 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.
isCurrentMember()  : bool
Check if this is a current organ member.

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
Return values
bool

isCurrentMember()

Check if this is a current organ member.

protected isCurrentMember(OrganMember $organMember) : bool
Parameters
$organMember : OrganMember
Return values
bool

        
On this page

Search results