forked from vikunja/vikunja
Fix setting the user in created_by when uploading an attachment
This commit is contained in:
parent
20af034d78
commit
e16c5f72ca
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user