Hi,

Here is patch that will allow you to set user roles who are allowed to post messages to chat.

Comments

Alexander_Gurov’s picture

StatusFileSize
new8.32 KB

sorry, I put empty file in previous post - here is right one

Anonymous’s picture

Status: Patch (to be ported) » Fixed

thanks, committed a modified version here:

http://drupalcode.org/project/chatroom.git/commit/99d3620

langworthy’s picture

Status: Fixed » Needs review
StatusFileSize
new1.44 KB

It looks like chatroom_field_insert() is missing the new method of $chatroom->set('allowedRids', $allowed_roles);

Also there is what I'm guessing might be debug code in chatroom_field_update().

This is a patch that adds to the already committed code.

langworthy’s picture

I should mention that before this patch, after creating a new chatroom I was getting the error Notice: Undefined index: chatroom_roles in chatroom_field_insert()… line 194 chatroom.module

Anonymous’s picture

Status: Needs review » Fixed

thanks, fixed the derp with this commit:

http://drupalcode.org/project/chatroom.git/commit/b94239e

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.