Méthode | Description | |
---|---|---|
__construct ( Symfony\Component\Security\Acl\Model\MutableAclProviderInterface $aclProvider, Sulu\Component\Security\Authorization\MaskConverterInterface $maskConverter, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher ) | ||
getPermissions ( $type, $identifier ) | ||
getUserPermissionByArray ( string $locale, string $securityContext, $objectPermissionsByRole, Sulu\Component\Security\Authentication\UserInterface $user ) : array | Returns the permissions regarding an array of role permissions and its security context for a given user. | |
getUserPermissions ( |
Returns the permissions regarding an object and its security context for a given user. | |
setPermissions ( $type, $identifier, $permissions ) |
Méthode | Description | |
---|---|---|
setPermission ( string $type, string $identifier, string $securityIdentity, array $permissions ) | Sets the permission for a single security identity. |
public __construct ( Symfony\Component\Security\Acl\Model\MutableAclProviderInterface $aclProvider, Sulu\Component\Security\Authorization\MaskConverterInterface $maskConverter, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher ) | ||
$aclProvider | Symfony\Component\Security\Acl\Model\MutableAclProviderInterface | |
$maskConverter | Sulu\Component\Security\Authorization\MaskConverterInterface | |
$eventDispatcher | Symfony\Component\EventDispatcher\EventDispatcherInterface |
public getUserPermissionByArray ( string $locale, string $securityContext, $objectPermissionsByRole, Sulu\Component\Security\Authentication\UserInterface $user ) : array | ||
$locale | string | |
$securityContext | string | |
$objectPermissionsByRole | ||
$user | Sulu\Component\Security\Authentication\UserInterface | The user for which the security is returned |
Résultat | array |
public getUserPermissions ( |
||
$securityCondition | The condition to check | |
$user | Sulu\Component\Security\Authentication\UserInterface | The user for which the security is returned |
Résultat | array |