Fix setting the user in created_by when uploading an attachment

This commit is contained in:
kolaente 2021-01-15 22:50:55 +01:00
parent 20af034d78
commit e16c5f72ca
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -74,6 +74,8 @@ func (ta *TaskAttachment) NewAttachment(s *xorm.Session, f io.ReadCloser, realna
return err
}
ta.CreatedBy, _ = user.GetFromAuth(a) // Ignoring cases where the auth is not a user
return nil
}