summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jobedit.go2
1 files changed, 1 insertions, 1 deletions
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