protected addAccessControl ( Doctrine\ORM\QueryBuilder $queryBuilder, Sulu\Component\Security\Authentication\UserInterface $user, integer $permission, string $entityClass, string $entityAlias ) |
$queryBuilder |
Doctrine\ORM\QueryBuilder |
The instance of the QueryBuilder to adjust |
$user |
Sulu\Component\Security\Authentication\UserInterface |
The user for which the access control is checked |
$permission |
integer |
The permission mask for which is checked |
$entityClass |
string |
The class of the entity of which the access control is checked |
$entityAlias |
string |
The alias of the entity used in the query builder |