more bug fixes

This commit is contained in:
JT Smith 2006-01-13 05:14:51 +00:00
parent 67241f9535
commit d6583c8986

View file

@ -16,7 +16,7 @@ package WebGUI::User;
use strict;
use WebGUI::Cache;
use WebGUI::SQL;
use WebGUI::Group;
=head1 NAME
@ -83,8 +83,9 @@ sub addToGroups {
my $groups = shift;
my $expireOffset = shift;
$self->uncache;
require WebGUI::Grouping;
$group->addUsers([$self->userId],$groups,$expireOffset);
foreach my $groupId (@{$groups}) {
WebGUI::Group->new($groupId)->addUsers([$self->userId],$expireOffset);
}
}
#-------------------------------------------------------------------