1
0

fix(project): pass user id to error message

This commit is contained in:
kolaente
2024-01-31 13:50:07 +01:00
parent 78353d1ffe
commit 7f46914d5e
2 changed files with 5 additions and 2 deletions

View File

@ -208,7 +208,10 @@ func (tf *TaskCollection) ReadAll(s *xorm.Session, a web.Auth, search string, pa
return nil, 0, 0, err
}
if !canRead {
return nil, 0, 0, ErrUserDoesNotHaveAccessToProject{ProjectID: tf.ProjectID}
return nil, 0, 0, ErrUserDoesNotHaveAccessToProject{
ProjectID: tf.ProjectID,
UserID: a.GetID(),
}
}
projects = []*Project{{ID: tf.ProjectID}}
}