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:
7b1f7ff
)
Fix require_admin again
author
Marius Gavrilescu
<marius@ieval.ro>
Tue, 25 Mar 2014 07:43:56 +0000
(09:43 +0200)
committer
Marius Gavrilescu
<marius@ieval.ro>
Tue, 25 Mar 2014 07:43:56 +0000
(09:43 +0200)
app.psgi
patch
|
blob
|
blame
|
history
diff --git
a/app.psgi
b/app.psgi
index a661a3155e7591044fe704028481788aa6c79c51..0222a168b80d395e95aaeeaf54f470459df90988 100644
(file)
--- a/
app.psgi
+++ b/
app.psgi
@@
-45,9
+45,9
@@
sub is_problem_private {
sub admin_required {
local $_ = $_[0];
my $env = $_[1];
sub admin_required {
local $_ = $_[0];
my $env = $_[1];
- return $db->contest($1)->owner->id if $env->{'gruntmaster.contest'} && db->contest($env->{'gruntmaster.contest'})->start > time;
+ return $db->contest($1)->owner->id if $env->{'gruntmaster.contest'} &&
$
db->contest($env->{'gruntmaster.contest'})->start > time;
return $db->problem($1)->owner->id if m,^/pb/$word, && is_problem_private $1 || $env->{'gruntmaster.problem'} && is_problem_private $env->{'gruntmaster.problem'};
return $db->problem($1)->owner->id if m,^/pb/$word, && is_problem_private $1 || $env->{'gruntmaster.problem'} && is_problem_private $env->{'gruntmaster.problem'};
- return $db->job ($1)->owner->id if m,^/log/(?:src/)?$word, && ($db->job($1)->private || is_problem_private $db->job($1)->problem || $db->job($1)->contest && $db->contest($db->job($1)->contest)->start > time);
+ return $db->job ($1)->owner->id if m,^/log/(?:src/)?$word, && ($db->job($1)->private || is_problem_private $db->job($1)->problem
->id
|| $db->job($1)->contest && $db->contest($db->job($1)->contest)->start > time);
''
}
''
}
This page took
0.010731 seconds
and
4
git commands to generate.