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

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

        if ($this->getItem()->isAdministrable() && !$this->canAdminister()) {
            return false;
        }

        return $this->actor->authorize('blocker', array('viewer' => $this->getItem()));
    }
public function canAddblock()
    {
        if (!$this->actor) {
            return false;
        }

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

        if ($this->getItem()->isAdministrable() && !$this->canAdminister()) {
            return false;
        }

        return $this->actor->authorize('blocker', array('viewer' => $this->getItem()));
    }
public function canAddblock ( ) { if ( ! $ this -> actor ) { return false ; } if ( ! $ this -> getItem ( ) ) { return false ; } if ( $ this -> getItem ( ) -> isAdministrable ( ) && ! $ this -> canAdminister ( ) ) { return false ; } return $ this -> actor -> authorize ( 'blocker' , array ( 'viewer' => $ this -> getItem ( ) ) ) ; }
Authorize blocking the actor.

@return bool
Authorize blocking the actor .