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;
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;
}