GRA-414: added additional logs for dns controllers

This commit is contained in:
Abhishek Kondur
2022-07-12 19:41:46 +04:00
parent 5163f77e1f
commit 87db489b1a
2 changed files with 33 additions and 19 deletions

View File

@@ -298,7 +298,7 @@ func updateUserAdm(w http.ResponseWriter, r *http.Request) {
return
}
if !user.IsAdmin {
logger.Log(0, username, "not a admin user")
logger.Log(0, username, "not an admin user")
returnErrorResponse(w, r, formatError(errors.New("not a admin user"), "badrequest"))
}
user, err = logic.UpdateUser(userchange, user)