public function canOauthorize()
    {
        $api = $this->getAPI();
        
        if ($api && $this->actor) {
            return $api->canAddService($this->actor);
        }

        return !is_null($api);
    }
public function canOauthorize()
    {
        $api = $this->getAPI();
        
        if ($api && $this->actor) {
            return $api->canAddService($this->actor);
        }

        return !is_null($api);
    }
public function canOauthorize ( ) { $ api = $ this -> getAPI ( ) ; if ( $ api && $ this -> actor ) { return $ api -> canAddService ( $ this -> actor ) ; } return ! is_null ( $ api ) ; }
Check if oauthorize is allowed.

@return bool
Check if oauthorize is allowed .