]> ruin.nu Git - ndwebbie.git/blobdiff - lib/NDWeb/Controller/Root.pm
Interface for searching for quotes
[ndwebbie.git] / lib / NDWeb / Controller / Root.pm
index 4608240644ad7cb0f212f6671f41641e0ce98aec..787850019a9929d1fb17a2d3fe9d4088ce5dda3e 100644 (file)
@@ -129,8 +129,8 @@ sub listTargets : Private {
 
        my $dbh = $c ->model;
 
-       my $query = $dbh->prepare(q{SELECT t.id, r.id AS raid, r.tick+c.wave-1 AS landingtick, 
-               (released_coords AND old_claim(timestamp)) AS released_coords, coords(x,y,z),c.launched,c.wave,c.joinable
+       my $query = $dbh->prepare(q{SELECT t.id, r.id AS raid, r.tick+c.wave-1 AS landingtick,
+               released_coords, coords(x,y,z),c.launched,c.wave,c.joinable
 FROM raid_claims c
        JOIN raid_targets t ON c.target = t.id
        JOIN raids r ON t.raid = r.id
@@ -220,6 +220,10 @@ sub end : ActionClass('RenderView') {
                        $c->stash->{template} = 'access_denied.tt2';
                        $c->res->status(403);
                        $c->clear_errors;
+               }elsif ($c->error->[0] =~ m/No logged in user, and none supplied as argument/){
+                       $c->stash->{template} = 'access_denied.tt2';
+                       $c->res->status(403);
+                       $c->clear_errors;
                }
        }