From: Marius Gavrilescu Date: Tue, 25 Feb 2014 18:59:10 +0000 (+0200) Subject: Change job_owner to job_user as the former does not exist X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=963c472db052cc76b5bb6d55eef6474c6a434074;p=plack-app-gruntmaster.git Change job_owner to job_user as the former does not exist (cherry picked from commit f7bbeee301ccfbf72de44afae2f9645cbc49c405) --- diff --git a/app.psgi b/app.psgi index c2c593c..a9eb098 100644 --- 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; - 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 job_owner $2; + return job_user $2; } 0 }