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"`
EditedBy string `json:"editedBy"`
}
// Editor returns the user who last edited this object.
func (obj *hasEditor) Editor() *User {
user, _ := GetUser(obj.EditedBy)
return user
}