code/libraries/joomlatools/library/controller/behavior/editable.php
public function canSave()
    {
        if($this->getRequest()->getFormat() == 'html')
        {
            if($this->getModel()->getState()->isUnique())
            {
                if($this->canEdit() && !$this->isLocked()) {
                    return true;
                }
            }
            else
            {
                if($this->canAdd()) {
                    return true;
                }
            }
        }

        return false;
    }
public function canSave()
    {
        if($this->getRequest()->getFormat() == 'html')
        {
            if($this->getModel()->getState()->isUnique())
            {
                if($this->canEdit() && !$this->isLocked()) {
                    return true;
                }
            }
            else
            {
                if($this->canAdd()) {
                    return true;
                }
            }
        }

        return false;
    }
public function canSave ( ) { if ( $ this -> getRequest ( ) -> getFormat ( ) == 'html' ) { if ( $ this -> getModel ( ) -> getState ( ) -> isUnique ( ) ) { if ( $ this -> canEdit ( ) && ! $ this -> isLocked ( ) ) { return true ; } } else { if ( $ this -> canAdd ( ) ) { return true ; } } } return false ; }
Permission handler for save actions

Method returns TRUE if the controller implements the ControllerModellable interface.

@return  boolean Return TRUE if action is permitted. FALSE otherwise.
Permission handler for save actions