Skip to content

Commit

Permalink
Fixed an audit log for files
Browse files Browse the repository at this point in the history
  • Loading branch information
frikky committed Apr 8, 2024
1 parent 311acd2 commit 7987e05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files.go
Original file line number Diff line number Diff line change
Expand Up @@ -1128,7 +1128,7 @@ func HandleEditFile(resp http.ResponseWriter, request *http.Request) {
}

if !found {
log.Printf("[AUDIT] User %s doesn't have access to file %s", user.Username, fileId)
log.Printf("[AUDIT] User %s in org %s (%s) doesn't have access to file %s", user.Username, user.ActiveOrg.Name, user.ActiveOrg.Id, fileId)
resp.WriteHeader(401)
resp.Write([]byte(`{"success": false}`))
return
Expand Down

0 comments on commit 7987e05

Please sign in to comment.