]> iEval git - gruntmaster-page.git/commitdiff
Change job_owner to job_user as the former does not exist
authorMarius Gavrilescu <marius@ieval.ro>
Tue, 25 Feb 2014 18:59:10 +0000 (20:59 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Tue, 25 Feb 2014 18:59:22 +0000 (20:59 +0200)
(cherry picked from commit f7bbeee301ccfbf72de44afae2f9645cbc49c405)

app.psgi

index c2c593c0b804951172800794a23fd75298cea33c..a9eb098d7672832589be3158ea37414aa510d1a1 100644 (file)
--- a/app.psgi
+++ b/app.psgi
@@ -31,11 +31,11 @@ sub some_auth_required {
 sub admin_required {
        local $_ = $_[0];
        return problem_owner $1 if m,^/pb/$word, && problem_private $1;
 sub admin_required {
        local $_ = $_[0];
        return problem_owner $1 if m,^/pb/$word, && problem_private $1;
-       return job_owner $1  if m,^/log/(?:job|src)/$word, && job_private $1;
+       return job_user $1  if m,^/log/(?:job|src)/$word, && job_private $1;
        return contest_owner $1 if m,^/ct/$word/(?:pb|log), && time < contest_start $1;
        if (m,^/ct/$word/log/(?:job|src)/$word, && time < contest_end $1){
                local $Gruntmaster::Data::contest = $1;
        return contest_owner $1 if m,^/ct/$word/(?:pb|log), && time < contest_start $1;
        if (m,^/ct/$word/log/(?:job|src)/$word, && time < contest_end $1){
                local $Gruntmaster::Data::contest = $1;
-               return job_owner $2;
+               return job_user $2;
        }
        0
 }
        }
        0
 }
This page took 0.028332 seconds and 4 git commands to generate.