X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=app.psgi;h=131dcb717b1b476f1e23f4850e360bba0c4f3067;hb=805b8c6c47605fe94d1d67ebb9c8d27bd6ed815d;hp=d16fb4c591f636aab7607e34d907a6bc2909b32d;hpb=23bde5b8d2d759b66627b42c0a6726fbae76abef;p=gruntmaster-page.git diff --git a/app.psgi b/app.psgi index d16fb4c..131dcb7 100644 --- a/app.psgi +++ b/app.psgi @@ -27,7 +27,7 @@ sub debug { sub some_auth_required { my $r = Plack::Request->new($_[0]); return 1 if $_[0]->{'gruntmaster.reqadmin'} || $r->path eq '/action/passwd' || $r->path eq '/submit'; - return 1 if $r->path =~ m,^/ct/$word/pb/$word, && time < $db->contest($1)->stop; + return 1 if $r->path =~ m,^/pb/$word, && $_[0]->{'gruntmaster.contest'} && time < $db->contest($_[0]->{'gruntmaster.contest'})->stop; '' }