public function canAdd()
    {
        $result = false;

        $component = $this->getService('repos:components.component')
        ->find(array('component' => 'com_'.$this->getIdentifier()->package));

        if ($component) {
            $result = $component->authorize('add');
        }

        return $result;
    }
public function canAdd()
    {
        $result = false;

        $component = $this->getService('repos:components.component')
        ->find(array('component' => 'com_'.$this->getIdentifier()->package));

        if ($component) {
            $result = $component->authorize('add');
        }

        return $result;
    }
public function canAdd ( ) { $ result = false ; $ component = $ this -> getService ( 'repos:components.component' ) -> find ( array ( 'component' => 'com_' . $ this -> getIdentifier ( ) -> package ) ) ; if ( $ component ) { $ result = $ component -> authorize ( 'add' ) ; } return $ result ; }
Authorize Add.

@return bool
Authorize Add .