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:
parent
c689379f92
commit
fbd4b17c15
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue