src/Sulu/Component/Security/Authorization/AccessControl/DoctrineAccessControlProvider.php
public function getPermissions($type, $identifier)
    {
        $accessControls = $this->accessControlRepository->findByTypeAndId($type, $identifier);

        $permissions = [];
        foreach ($accessControls as $accessControl) {
            $permissions[$accessControl->getRole()->getId()] = $this->maskConverter->convertPermissionsToArray(
                $accessControl->getPermissions()
            );
        }

        return $permissions;
    }
public function getPermissions($type, $identifier)
    {
        $accessControls = $this->accessControlRepository->findByTypeAndId($type, $identifier);

        $permissions = [];
        foreach ($accessControls as $accessControl) {
            $permissions[$accessControl->getRole()->getId()] = $this->maskConverter->convertPermissionsToArray(
                $accessControl->getPermissions()
            );
        }

        return $permissions;
    }
public function getPermissions ( $ type , $ identifier ) { $ accessControls = $ this -> accessControlRepository -> findByTypeAndId ( $ type , $ identifier ) ; $ permissions = [ ] ; foreach ( $ accessControls as $ accessControl ) { $ permissions [ $ accessControl -> getRole ( ) -> getId ( ) ] = $ this -> maskConverter -> convertPermissionsToArray ( $ accessControl -> getPermissions ( ) ) ; } return $ permissions ; }
Returns the permissions for all security identities.

@param string $type The type of the protected object
@param string $identifier The identifier of the protected object

@return array
Returns the permissions for all security identities .