diff --git a/mailpoet/lib/API/REST/API.php b/mailpoet/lib/API/REST/API.php index a6cfd69100..f2d5b63231 100644 --- a/mailpoet/lib/API/REST/API.php +++ b/mailpoet/lib/API/REST/API.php @@ -72,7 +72,7 @@ class API { }, 'permission_callback' => function () use ($endpointClass) { $endpoint = $this->endpointContainer->get($endpointClass); - return $endpoint->checkPermissions(); + return $endpoint->checkPermissions(); // nosemgrep: scanner.php.wp.security.rest-route.permission-callback.incorrect-return }, 'args' => $schema, ]);