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

Datawriter Question

Discussion in 'XenForo Development Discussions' started by ragtek, Dec 1, 2010.

  1. ragtek

    ragtek Guest

    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
    $conversationModel $this->_getConversationModel();
    $noStart = array();
                foreach (
    $users AS $user)
                    if (!
    $noStart[] = $user['username'];

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

    Mike XenForo Developer Staff Member

    In this particular case, if you call addRecipientUserIds instead of addRecipientUserNames, it doesn't check permissions.
    Peggy likes this.

Share This Page