Add POD to www_deleteGroup, and untab it.
This commit is contained in:
parent
aa7b0b9839
commit
6280f242bf
1 changed files with 15 additions and 6 deletions
|
|
@ -248,13 +248,22 @@ sub www_autoDeleteFromGroup {
|
|||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 www_deleteGroup
|
||||
|
||||
Delete's the group specified by id, in the form variable gid. Groups 1-17
|
||||
are reserved for WebGUI internal groups and are not allowed to be deleted.
|
||||
Returns you to www_listGroups when done.
|
||||
|
||||
=cut
|
||||
|
||||
sub www_deleteGroup {
|
||||
my $session = shift;
|
||||
return $session->privilege->adminOnly() unless (canEditGroup($session,$session->form->process("gid")));
|
||||
return $session->privilege->vitalComponent() if (isIn($session->form->process("gid"), qw(1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17)));
|
||||
my $g = WebGUI::Group->new($session,$session->form->process("gid"));
|
||||
$g->delete;
|
||||
return www_listGroups($session);
|
||||
my $session = shift;
|
||||
return $session->privilege->adminOnly() unless (canEditGroup($session,$session->form->process("gid")));
|
||||
return $session->privilege->vitalComponent() if (isIn($session->form->process("gid"), qw(1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17)));
|
||||
my $g = WebGUI::Group->new($session,$session->form->process("gid"));
|
||||
$g->delete;
|
||||
return www_listGroups($session);
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue