$_REQUEST['gid'])) as $Group ) { // Deleting a group removes its monitors from it, which can lift a deny on them. if (!ZM\Group::canEditMembership($Group->MonitorIds())) { ZM\Warning('Need edit permission on every monitor in group '.$Group->Id().' to delete it'); continue; } $Group->delete(); ZM\AuditAction('delete', 'group', $Group->Id(), 'Name: '.$Group->Name()); } } $redirect = '?view=groups'; $refreshParent = true; } # end if action ?>