projects
/
gruntmaster-page.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3994b2a
)
Require admin to list problems of pending contests
author
Marius Gavrilescu
<marius@ieval.ro>
Sun, 8 Mar 2015 08:08:00 +0000
(10:08 +0200)
committer
Marius Gavrilescu
<marius@ieval.ro>
Sun, 8 Mar 2015 08:08:00 +0000
(10:08 +0200)
lib/Plack/App/Gruntmaster.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Plack/App/Gruntmaster.pm
b/lib/Plack/App/Gruntmaster.pm
index 490fb44e726794c1d6212283650cf5ae81b2b311..00f9b0f52c39d133f0e0903544e3283c634067fe 100644
(file)
--- a/
lib/Plack/App/Gruntmaster.pm
+++ b/
lib/Plack/App/Gruntmaster.pm
@@
-153,6
+153,7
@@
sub dispatch_request{
},
sub (/pb/ + ?:owner~&:contest~&:private~) {
forbid $_{private};
+ forbid contest->is_pending;
response pb => 'Problems', db->problem_list(%_)
},
This page took
0.01063 seconds
and
4
git commands to generate.