1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-18 20:59:43 +02:00

Record all doc pin related user actions

This commit is contained in:
sauls8t 2020-02-04 14:36:11 +00:00
parent c689379f92
commit fbd4b17c15

View file

@ -1070,6 +1070,8 @@ func (h *Handler) Pin(w http.ResponseWriter, r *http.Request) {
h.Runtime.Commit(ctx.Transaction)
h.Store.Audit.Record(ctx, audit.EventTypeDocPinAdd)
response.WriteEmpty(w)
}
@ -1122,6 +1124,8 @@ func (h *Handler) Unpin(w http.ResponseWriter, r *http.Request) {
h.Runtime.Commit(ctx.Transaction)
h.Store.Audit.Record(ctx, audit.EventTypeDocPinRemove)
response.WriteEmpty(w)
}
@ -1222,6 +1226,8 @@ func (h *Handler) PinMove(w http.ResponseWriter, r *http.Request) {
SourceType: activity.SourceTypeDocument,
ActivityType: activity.TypePinSequence})
h.Store.Audit.Record(ctx, audit.EventTypeDocPinChange)
h.Runtime.Commit(ctx.Transaction)
response.WriteEmpty(w)