Added expiration overrides for groupings imported through the user importer.
This commit is contained in:
parent
50a5561f64
commit
f1067a0d8f
4 changed files with 58 additions and 10 deletions
|
|
@ -65,7 +65,7 @@ sub _create {
|
|||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 addToGroups ( groups )
|
||||
=head2 addToGroups ( groups [, expireOffset ] )
|
||||
|
||||
Adds this user to the specified groups.
|
||||
|
||||
|
|
@ -75,12 +75,16 @@ Adds this user to the specified groups.
|
|||
|
||||
An array reference containing a list of groups.
|
||||
|
||||
=item expireOffset
|
||||
|
||||
An override for the default offset of the grouping. Specified in seconds.
|
||||
|
||||
=back
|
||||
|
||||
=cut
|
||||
|
||||
sub addToGroups {
|
||||
WebGUI::Grouping::addUsersToGroups([$_[0]->{_userId}],$_[1]);
|
||||
WebGUI::Grouping::addUsersToGroups([$_[0]->{_userId}],$_[1],$_[2]);
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue