Newscoop\Services\Plugins\PluginsService::getRights PHP Method

getRights() public method

Get rights
public getRights ( array $params ) : array
$params array
return array
    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();
    }