14 lines
325 B
Go

package arn
// HasEditor includes user ID and date for the last edit of this object.
type hasEditor struct {
Edited string `json:"edited"`
EditedBy UserID `json:"editedBy"`
}
// Editor returns the user who last edited this object.
func (obj *hasEditor) Editor() *User {
user, _ := GetUser(obj.EditedBy)
return user
}