Skip to content
This repository was archived by the owner on Sep 22, 2024. It is now read-only.

Commit 2a11a60

Browse files
author
Christoph Bühler
committed
fix: correctly use forbidden in egress
1 parent 7b5dd4f commit 2a11a60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/egress.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func (server *EgressServer) Check(_ context.Context, req *auth.CheckRequest) (*a
3232
return envoy.CreateForbiddenResponse("No UserID given for outbound communication."), nil
3333
}
3434

35-
if result.Forbidden == "" {
35+
if result.Forbidden != "" {
3636
return envoy.CreateForbiddenResponse(result.Forbidden), nil
3737
}
3838

0 commit comments

Comments
 (0)