public function getRights(array $params)
{
$connection = $this->em->getConnection();
$permission = $params['filters']['right_define_name'];
$query = $connection->executeQuery('SELECT right_id FROM liveuser_rights WHERE right_define_name = :permission', array('permission' => $permission));
return $query->fetch();
}