diff --git a/src/main/java/io/cryostat/agent/remote/RecordingsContext.java b/src/main/java/io/cryostat/agent/remote/RecordingsContext.java index bfb45037..ef733f10 100644 --- a/src/main/java/io/cryostat/agent/remote/RecordingsContext.java +++ b/src/main/java/io/cryostat/agent/remote/RecordingsContext.java @@ -375,7 +375,7 @@ private boolean ensureMethodAccepted(HttpExchange exchange) throws IOException { if (!restricted) { return true; } - boolean passed = restricted && MutatingRemoteContext.apiWritesEnabled(config); + boolean passed = MutatingRemoteContext.apiWritesEnabled(config); if (!passed) { exchange.sendResponseHeaders(HttpStatus.SC_FORBIDDEN, BODY_LENGTH_NONE); }