fix(kanban): do not allow creating tasks in full bucket

This commit is contained in:
kolaente 2025-03-19 15:18:55 +01:00
parent ea42fef2da
commit 134c2a1a80
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B
1 changed files with 6 additions and 1 deletions

View File

@ -893,7 +893,12 @@ func createTask(s *xorm.Session, t *Task, a web.Auth, updateAssignees bool, setB
if t.BucketID != 0 {
providedBucket, err = getBucketByID(s, t.BucketID)
if err != nil {
return err
return
}
err = checkBucketLimit(s, a, t, providedBucket)
if err != nil {
return
}
}