• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

preventing reply to personal conversations

optrex

Active member
#1
I have a member who is now being moderated. As part of that I also need to restrict PM access. I can stop him creating a new conversation, but how do I stop him from contacting others using the reply mechanism to convos he has already made?
 

Arty

Well-known member
#5
Find function _assertCanReplyToConversation in library/XenForo/ControllerPublic/Conversation.php, replace
Code:
        if (!$this->_getConversationModel()->canReplyToConversation($conversation, $errorPhraseKey))
with
Code:
        $model = $this->_getConversationModel();
        if (!$model->canReplyToConversation($conversation, $errorPhraseKey) || !$model->canStartConversations($errorPhraseKey))
or create simple add-on to override that function, which is a better solution.