X-Git-Url: https://git.decadent.org.uk/gitweb/?p=memories.git;a=blobdiff_plain;f=Memories.pm;fp=Memories.pm;h=8536d1793c5d524800df05b49ab60344c6dbd86d;hp=0aebf11fab5cf447bbdadd0b047c800ffbf725b3;hb=090e12c1f7141a6d5a25014fc33e9b1cc382c0b7;hpb=b296018cbb77cba15109540e5eee16d15cbdd7cb diff --git a/Memories.pm b/Memories.pm index 0aebf11..8536d17 100644 --- a/Memories.pm +++ b/Memories.pm @@ -91,6 +91,7 @@ sub authenticate { my ($self, $r) = @_; return DECLINED if $self->path =~/static|store/; # XXX $r->get_user; + if (!$r->user and $self->path =~ /upload/) { $r->template("login"); } return OK; }