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

Datawriter Question

R

ragtek

Guest
#1
In vBulletin, it was possible to set the is_automatic tag true.
With this, all the permission and floodchecks were skipped (what was a great feature)

Is there any similar method, which we can in the datawriter, without to have to overwrite all the methods??

I'm having the problem, that i want to send a conversation to the new members, but i can't because they have no permissions, until they verify there mailaddress.

conversationmaster line 130
PHP:
else
        {
            $conversationModel = $this->_getConversationModel();
            $noStart = array();
            foreach ($users AS $user)
            {
                if (!$conversationModel->canStartConversationWithUser($user, $null, $permUser))
                {
                    $noStart[] = $user['username'];
                }
            }

            if ($noStart)
            {
                $this->error(new XenForo_Phrase('you_may_not_start_a_conversation_with_the_following_recipients_x', array('names' => implode(', ', $noStart))), 'recipients');
            }
 

Mike

XenForo developer
Staff member
#2
In this particular case, if you call addRecipientUserIds instead of addRecipientUserNames, it doesn't check permissions.