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
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 2 additions and 0 deletions

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
}