When choose "No" for "Instant access" (so it will/should be only possible logged in user to use this chatroom) in a chat room, nobody can go in this chat. Also when a user is logged in. The cause is, that the condition

    if (!$node->visitors && !$user->name) {
      $room_access = 0;
    }

in the function "v2wvc_view" don't work, because "global $user" is not set in this function. So "$user->name" will be always "NULL".
When you set "global $user" in this function, it works.

Comments

socialnicheguru’s picture

thanks for this.

FTI Cornwall’s picture

"When you set "global $user" in this function, it works."

I have the same problem, where/how do I set global $user?