Fixed code editor coloring again

This commit is contained in:
frikky
2023-03-23 22:34:19 +01:00
parent 04b626c254
commit 165f6c6f86
8 changed files with 72 additions and 55 deletions
+1 -1
View File
@@ -2597,7 +2597,7 @@ func executeSingleAction(resp http.ResponseWriter, request *http.Request) {
if user.Role == "org-reader" {
log.Printf("[WARNING] Org-reader doesn't have access to execute single action: %s (%s)", user.Username, user.Id)
resp.WriteHeader(401)
resp.WriteHeader(403)
resp.Write([]byte(`{"success": false, "reason": "Read only user"}`))
return
}