X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=Memories.pm;h=87a5ac0036228192f37066404862618339eb095f;hb=3c50d5c471334d3753df8b553e9622be5096ed80;hp=a789fabf524497765120d66a42bf8ee85a5bb29a;hpb=6e690feb2f60fc95145b4f6d83821da896505eb5;p=memories.git diff --git a/Memories.pm b/Memories.pm index a789fab..87a5ac0 100644 --- a/Memories.pm +++ b/Memories.pm @@ -1,7 +1,7 @@ package Memories; use strict; our $VERSION = "1.2"; -use Maypole::Application qw(Upload Authentication::UserSessionCookie); +use Maypole::Application qw(Authentication::UserSessionCookie); use HTML::TagCloud; use URI; use Memories::Config; @@ -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"); }