Skip to content

Commit

Permalink
Add extra info to logs
Browse files Browse the repository at this point in the history
  • Loading branch information
jggoebel committed Sep 18, 2024
1 parent 619b441 commit 0ee299d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v3/services/vmsvc/internal/vmservice.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func (vms VMServer) getWebinterfaces(w http.ResponseWriter, r *http.Request) {
if vm.GetUser() != impersonatedUserId && vm.GetVmType() == vmpb.VirtualMachineType_USER {
authrResponse, err := rbac.AuthorizeSimple(r, vms.authrClient, impersonatedUserId, rbac.HobbyfarmPermission(resourcePlural, rbac.VerbGet))
if err != nil || !authrResponse.Success {
glog.Errorf("user forbidden from accessing vm id %s", vm.GetId())
glog.Errorf("user forbidden from accessing vm id %s of type %s", vm.GetId(), vm.GetVmType().String())
util.ReturnHTTPMessage(w, r, 403, "forbidden", "no access to get vm")
return
}
Expand Down

0 comments on commit 0ee299d

Please sign in to comment.