protected function _actionSetPrivacy(AnCommandContext $context)
    {
        if ($this->hasBehavior('privatable')) {
            $this->getBehavior('privatable')->execute('action.setprivacy', $context);
        }

        $data = $context->data;

        if ($data->access != 'followers') {
            $data->allowFollowRequest = false;
        }

        $this->getItem()->allowFollowRequest = (bool) $data->allowFollowRequest;
    }
protected function _actionSetPrivacy(AnCommandContext $context)
    {
        if ($this->hasBehavior('privatable')) {
            $this->getBehavior('privatable')->execute('action.setprivacy', $context);
        }

        $data = $context->data;

        if ($data->access != 'followers') {
            $data->allowFollowRequest = false;
        }

        $this->getItem()->allowFollowRequest = (bool) $data->allowFollowRequest;
    }
protected function _actionSetPrivacy ( AnCommandContext $ context ) { if ( $ this -> hasBehavior ( 'privatable' ) ) { $ this -> getBehavior ( 'privatable' ) -> execute ( 'action.setprivacy' , $ context ) ; } $ data = $ context -> data ; if ( $ data -> access != 'followers' ) { $ data -> allowFollowRequest = false ; } $ this -> getItem ( ) -> allowFollowRequest = ( bool ) $ data -> allowFollowRequest ; }
Overwrite the setPrivacy action in privatable behavior.

@param AnCommandContext $context Context parameter

@see   ComActorsDomainBehaviorPrivatable
Overwrite the setPrivacy action in privatable behavior .