diff --git a/domain/section/endpoint.go b/domain/section/endpoint.go index aaa2f2c4..a97d38b3 100644 --- a/domain/section/endpoint.go +++ b/domain/section/endpoint.go @@ -60,12 +60,7 @@ func (h *Handler) RunSectionCommand(w http.ResponseWriter, r *http.Request) { // it's up to the section handler to parse if required. // Permission checks - if !permission.CanChangeDocument(ctx, *h.Store, documentID) { - response.WriteForbiddenError(w) - return - } - - if !ctx.Editor { + if !ctx.Editor && !permission.CanChangeDocument(ctx, *h.Store, documentID) { response.WriteForbiddenError(w) return }