Symfony2 API
Interface

Symfony\Component\Security\Acl\Model\PermissionGrantingStrategyInterface

interface PermissionGrantingStrategyInterface

Interface used by permission granting implementations.

Methods

bool isGranted(AclInterface $acl, array $masks, array $sids, bool $administrativeMode = false)

Determines whether access to a domain object is to be granted

bool isFieldGranted(AclInterface $acl, string $field, array $masks, array $sids, bool $administrativeMode = false)

Determines whether access to a domain object's field is to be granted

Details

at line 31
public bool isGranted(AclInterface $acl, array $masks, array $sids, bool $administrativeMode = false)

Determines whether access to a domain object is to be granted

Parameters

AclInterface $acl
array $masks
array $sids
bool $administrativeMode

Return Value

bool

at line 44
public bool isFieldGranted(AclInterface $acl, string $field, array $masks, array $sids, bool $administrativeMode = false)

Determines whether access to a domain object's field is to be granted

Parameters

AclInterface $acl
string $field
array $masks
array $sids
bool $administrativeMode

Return Value

bool