1
0

fix(task): do not require admin permission to move tasks between buckets

Resolves https://community.vikunja.io/t/moving-between-buckets-requires-admin-permissions-now/2390
This commit is contained in:
kolaente 2024-06-03 16:26:07 +02:00
parent a6fccfb908
commit 6c8299772a
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B

View File

@ -47,11 +47,8 @@ func (tp *TaskPosition) TableName() string {
}
func (tp *TaskPosition) CanUpdate(s *xorm.Session, a web.Auth) (bool, error) {
pv, err := GetProjectViewByID(s, tp.ProjectViewID)
if err != nil {
return false, err
}
return pv.CanUpdate(s, a)
t := &Task{ID: tp.TaskID}
return t.CanUpdate(s, a)
}
// Update is the handler to update a task position