From: Marius Gavrilescu <marius@ieval.ro>
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=f7bbeee301ccfbf72de44afae2f9645cbc49c405;p=plack-app-gruntmaster.git

Change job_owner to job_user as the former does not exist
---

diff --git a/app.psgi b/app.psgi
index f975385..4f4526b 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
 }