···126126 }
127127}
128128129129+func (at ActionType) InActions(actions ...string) bool {
130130+ for _, action := range actions {
131131+ if action == at.String() {
132132+ return true
133133+ }
134134+ }
135135+ return false
136136+}
137137+129138// Action represents user operation type and other information to
130139// repository. It implemented interface base.Actioner so that can be
131140// used in template render.