more bug fixes
This commit is contained in:
parent
67241f9535
commit
d6583c8986
1 changed files with 4 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue