From 38b4f4b859ebf803f7314b541554d358cbff054a Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Sat, 21 Sep 2013 12:55:55 +0200 Subject: When jobsLimit is < 0, no job limit is enforced --- jobedit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jobedit.go b/jobedit.go index 6799bf8..b3bedf0 100644 --- a/jobedit.go +++ b/jobedit.go @@ -217,7 +217,7 @@ func jobedit(user model.User, sess *sessions.Session, req *http.Request) (interf } if req.Method == "POST" { - if (job == nil) && (user.CountJobs() >= jobsLimit) { + if (job == nil) && (jobsLimit >= 0) && (user.CountJobs() >= jobsLimit) { outdata.Error = "You have reached the limit of jobs per user." outdata.Fatal = true return outdata, user -- cgit v1.2.3-70-g09d2