public function canShareRequest(ComSharesSharerRequest $request)
    {
        $object = $request->object;

        return $object->access == 'public' && !$this->_session->isReadOnly();
    }
public function canShareRequest(ComSharesSharerRequest $request)
    {
        $object = $request->object;

        return $object->access == 'public' && !$this->_session->isReadOnly();
    }
public function canShareRequest ( ComSharesSharerRequest $ request ) { $ object = $ request -> object ; return $ object -> access == 'public' && ! $ this -> _session -> isReadOnly ( ) ; }
Return whether a boolean.

@param ComSharesSharerRequest $request The share request

@return bool Return whether the share was succesful or not
Return whether a boolean .