public function index($id = null) : Response
    {
        $this->additionalSearchFields = [
            ['id', ':', $this->userData->getId()],
        ];

        return parent::index();
    }
public function index($id = null) : Response
    {
        $this->additionalSearchFields = [
            ['id', ':', $this->userData->getId()],
        ];

        return parent::index();
    }
public function index ( $ id = null ) : Response { $ this -> additionalSearchFields = [ [ 'id' , ':' , $ this -> userData -> getId ( ) ] , ] ; return parent :: index ( ) ; }
List of Users, but always returns the one user

@method GET
url /v1/users

@param int $id
@todo if admin return all the users
@return \Phalcon\Http\Response
List of Users but always returns the one user