14 lines
325 B
Go
Raw Normal View History

2019-06-03 09:32:43 +00:00
package arn
// HasEditor includes user ID and date for the last edit of this object.
type hasEditor struct {
Edited string `json:"edited"`
2019-11-18 05:01:13 +00:00
EditedBy UserID `json:"editedBy"`
2019-06-03 09:32:43 +00:00
}
// Editor returns the user who last edited this object.
func (obj *hasEditor) Editor() *User {
user, _ := GetUser(obj.EditedBy)
return user
}