mirror of
https://github.com/datarhei/core.git
synced 2025-10-05 07:57:13 +08:00
Remove debug printf
This commit is contained in:
@@ -2,7 +2,6 @@ package api
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
"sort"
|
"sort"
|
||||||
"strconv"
|
"strconv"
|
||||||
@@ -631,8 +630,6 @@ func (h *ProcessHandler) SetReport(c echo.Context) error {
|
|||||||
domain := util.DefaultQuery(c, "domain", "")
|
domain := util.DefaultQuery(c, "domain", "")
|
||||||
id := util.PathParam(c, "id")
|
id := util.PathParam(c, "id")
|
||||||
|
|
||||||
fmt.Printf("entering SetReport handler\n")
|
|
||||||
|
|
||||||
if !h.iam.Enforce(ctxuser, domain, "process", id, "write") {
|
if !h.iam.Enforce(ctxuser, domain, "process", id, "write") {
|
||||||
return api.Err(http.StatusForbidden, "", "You are not allowed to write this process: %s", id)
|
return api.Err(http.StatusForbidden, "", "You are not allowed to write this process: %s", id)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user