Unify the list of protected groups into Group->vitalGroup. Refactor
WebGUI::Test and Operation/Group to use that list.
This commit is contained in:
parent
da41082cbf
commit
6137b681f3
3 changed files with 181 additions and 9 deletions
|
|
@ -152,7 +152,7 @@ END {
|
|||
my $Test = Test::Builder->new;
|
||||
GROUP: foreach my $group (@groupsToDelete) {
|
||||
my $groupId = $group->getId;
|
||||
next GROUP if any { $groupId eq $_ } qw/1 2 3 4 6 7 8 11 12 13 14 pbgroup000000000000015 pbgroup000000000000016 pbgroup000000000000017 /;
|
||||
next GROUP if WebGUI::Group->vitalGroup($groupId);
|
||||
my $newGroup = WebGUI::Group->new($SESSION, $groupId);
|
||||
$newGroup->delete if $newGroup;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue