X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=Memories.pm;fp=Memories.pm;h=a789fabf524497765120d66a42bf8ee85a5bb29a;hb=6e690feb2f60fc95145b4f6d83821da896505eb5;hp=8536d1793c5d524800df05b49ab60344c6dbd86d;hpb=f9656aa2ad257959dd4ed469714ca75791b70040;p=memories.git diff --git a/Memories.pm b/Memories.pm index 8536d17..a789fab 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 -Debug); +use Maypole::Application qw(Upload Authentication::UserSessionCookie); use HTML::TagCloud; use URI; use Memories::Config; @@ -92,6 +92,12 @@ sub authenticate { return DECLINED if $self->path =~/static|store/; # XXX $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$/) { + $r->table("photo"); $r->action("quarantine"); + $r->model_class("Memories::Photo"); + } return OK; }