]> ruin.nu Git - ndwebbie.git/blobdiff - NDWeb/Pages/CovOp.pm
Make relationship and planet_status an enum
[ndwebbie.git] / NDWeb / Pages / CovOp.pm
index 162e64615bffa5f04d80a25ecefc21ea78aee0e4..4654eee0d47f911f24969c569f2bea8be501dec6 100644 (file)
@@ -40,9 +40,9 @@ sub render_body {
        $self->{TITLE} = 'CovOp Targets';
        my $DBH = $self->{DBH};
 
-       return $self->noAccess unless $self->isHC;
+       return $self->noAccess unless $self->isMember;
 
-       my $show = q{AND ((planet_status IS NULL OR NOT planet_status IN ('Friendly','NAP')) AND  (relationship IS NULL OR NOT relationship IN ('Friendly','NAP')))};
+       my $show = q{AND (NOT planet_status IN ('Friendly','NAP')) AND  (NOT relationship IN ('Friendly','NAP'))};
        $show = '' if defined param('show') && param('show') eq 'all';
        if (defined param('covop') && param('covop') =~ /^(\d+)$/){
                my $update = $DBH->prepare('UPDATE covop_targets SET covop_by = ?, last_covop = tick() WHERE planet = ? ');