From 0e50ec6a35aaad8f38512f7a4099861e5edc47e9 Mon Sep 17 00:00:00 2001 From: Daniel Schalla Date: Fri, 22 Feb 2019 16:20:59 +0100 Subject: [PATCH] Use LogAudit instead of LogAuditWithUser for role/auth provider modification (#10312) --- api4/user.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api4/user.go b/api4/user.go index 4e9ed8bf78..b658206cc1 100644 --- a/api4/user.go +++ b/api4/user.go @@ -835,7 +835,7 @@ func updateUserRoles(c *Context, w http.ResponseWriter, r *http.Request) { return } - c.LogAuditWithUserId(c.Params.UserId, "roles="+newRoles) + c.LogAudit(fmt.Sprintf("user=%s roles=%s", c.Params.UserId, newRoles)) ReturnStatusOK(w) } @@ -911,7 +911,7 @@ func updateUserAuth(c *Context, w http.ResponseWriter, r *http.Request) { return } - c.LogAuditWithUserId(c.Params.UserId, fmt.Sprintf("updated user auth to service=%v", user.AuthService)) + c.LogAudit(fmt.Sprintf("updated user %s auth to service=%v", c.Params.UserId, user.AuthService)) w.Write([]byte(user.ToJson())) }