|
Date: 7/2/2007 3:45 pm · Subject: Re: SQL pseudo groups do not work · Rating: 6
Ok. I created two macro to check my sanity. my $session = shift; my $output; my $gid = "GoQ2Dm_PER6H2hoW9FwFlg"; #isInGroup is from Users.pm return $session->user->isInGroup($gid); always return 0 (false) when logged in as visitor even though the query returns 1 which is the uid of the visitor. So then I created this macro to call getDatabaseUsers to verify what it's returning. but this just returns returns just "eggs" my $session = shift; my $output; my $gid = "GoQ2Dm_PER6H2hoW9FwFlg"; my $g = WebGUI::Group->new($session,$gid); my @users = (); #getDatabaseUsers is from Groups.pm push @users, @{$g->getDatabaseUsers() }, "eggs" ; foreach my $uid (@users) { $output .= $uid."</br/>"; } return $output;
So I'm concluding that when the list of users is retrieved from a sql-based qroup via via getDatabaseUsers function, the uid of "1" is somehow ignored. Again, I verfied the SQL with SQLreport and it does return "1" correctly. I just don't know perl enough to find the offending code that ignores the "1". Thanks!
|