Active
Project:
2 Way Video Chat
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
30 Oct 2010 at 19:27 UTC
Updated:
6 May 2011 at 22:56 UTC
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
Comment #1
socialnicheguru commentedthanks for this.
Comment #2
FTI Cornwall commented"When you set "global $user" in this function, it works."
I have the same problem, where/how do I set global $user?