Add some POD to Operation::Group.
Removed dead code from Operation::User (a duplicate copy of www_deleteGrouping). I verified that Operation.pm calls Group instead of User and there are no places in the core code that calls that sub directly. Fixed a typo in Operation::User::www_deleteUserConfirm.
This commit is contained in:
parent
3a6284d0f4
commit
ba3b34dfcc
2 changed files with 97 additions and 19 deletions
|
|
@ -221,6 +221,16 @@ sub www_deleteGroupGrouping {
|
|||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 www_deleteGrouping ( )
|
||||
|
||||
Deletes a set of users from a set of groups. Only Admins may perform this function.
|
||||
The user and group lists are expected to
|
||||
be found in form fields names uid and gid, respectively. Visitors are not allowed to
|
||||
perform this operation, and the
|
||||
|
||||
=cut
|
||||
|
||||
sub www_deleteGrouping {
|
||||
return WebGUI::Privilege::adminOnly() unless (WebGUI::Grouping::isInGroup(3) || _hasSecondaryPrivilege($session{form}{gid}));
|
||||
if (($session{user}{userId} eq $session{form}{uid} || $session{form}{uid} eq '3') && $session{form}{gid} eq '3') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue