X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=Memories.pm;h=236060ddc6267da5af1b88f5a6364aa2cf5f09d1;hb=c64b1bd4c2f92ff2a2fe12423cf543e5ad4b72c8;hp=a789fabf524497765120d66a42bf8ee85a5bb29a;hpb=6e690feb2f60fc95145b4f6d83821da896505eb5;p=memories.git diff --git a/Memories.pm b/Memories.pm index a789fab..236060d 100644 --- a/Memories.pm +++ b/Memories.pm @@ -93,8 +93,7 @@ sub authenticate { $r->get_user; if (!$r->user and $self->path =~ /upload/) { $r->template("login"); } # Don't let 'em go until they've fixed it - warn "Quarantine is : ".$r->session->{quarantined}; - if ($r->session->{quarantined} and $self->path !~ /js$/) { + if ($r->session and $r->session->{quarantined} and $self->path !~ /js$/) { $r->table("photo"); $r->action("quarantine"); $r->model_class("Memories::Photo"); }