public function canGet()
    {
        if (!$this->actor) {
            $this->actor = $this->getService('com:people.viewer');
        }

        if (!$this->actor) {
            return false;
        }

        if (!$this->actor->authorize('administration')) {
            return false;
        }

        $this->getService('repos:connect.session');

        $api = $this->actor->sessions->{$this->getIdentifier()->name};

        if (!$api) {
            return false;
        }

        $this->api = $api;
        
        return true;
    }
public function canGet()
    {
        if (!$this->actor) {
            $this->actor = $this->getService('com:people.viewer');
        }

        if (!$this->actor) {
            return false;
        }

        if (!$this->actor->authorize('administration')) {
            return false;
        }

        $this->getService('repos:connect.session');

        $api = $this->actor->sessions->{$this->getIdentifier()->name};

        if (!$api) {
            return false;
        }

        $this->api = $api;
        
        return true;
    }
public function canGet ( ) { if ( ! $ this -> actor ) { $ this -> actor = $ this -> getService ( 'com:people.viewer' ) ; } if ( ! $ this -> actor ) { return false ; } if ( ! $ this -> actor -> authorize ( 'administration' ) ) { return false ; } $ this -> getService ( 'repos:connect.session' ) ; $ api = $ this -> actor -> sessions -> { $ this -> getIdentifier ( ) -> name } ; if ( ! $ api ) { return false ; } $ this -> api = $ api ; return true ; }
Authorize a GET request.

@return bool
Authorize a GET request .