Added arn to the main repository
This commit is contained in:
13
arn/HasEditor.go
Normal file
13
arn/HasEditor.go
Normal file
@ -0,0 +1,13 @@
|
||||
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
|
||||
}
|
Reference in New Issue
Block a user