public function canExecute($action)
    {
        if (
            $this->isOwnable() &&
            $this->actor &&
            $this->actor->authorize('access') === false
            ) {
            return false;
        }

        return parent::canExecute($action);
    }
public function canExecute($action)
    {
        if (
            $this->isOwnable() &&
            $this->actor &&
            $this->actor->authorize('access') === false
            ) {
            return false;
        }

        return parent::canExecute($action);
    }
public function canExecute ( $ action ) { if ( $ this -> isOwnable ( ) && $ this -> actor && $ this -> actor -> authorize ( 'access' ) === false ) { return false ; } return parent :: canExecute ( $ action ) ; }
If an app is not enabled for an actor then don't let the viewer to see it.

@param string $action Action name

@return bool
If an app is not enabled for an actor then don t let the viewer to see it .