From a433ad2593585cf547fe60553dcdc17f5076ea8b Mon Sep 17 00:00:00 2001 From: netkas Date: Wed, 12 Mar 2025 13:32:17 -0400 Subject: [PATCH] Refactor VerificationAuthenticate to simplify external peer check in authentication method https://github.com/nosial/Socialbox-PHP/issues/77 --- .../StandardMethods/Verification/VerificationAuthenticate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Socialbox/Classes/StandardMethods/Verification/VerificationAuthenticate.php b/src/Socialbox/Classes/StandardMethods/Verification/VerificationAuthenticate.php index 25ed7c1..3970f69 100644 --- a/src/Socialbox/Classes/StandardMethods/Verification/VerificationAuthenticate.php +++ b/src/Socialbox/Classes/StandardMethods/Verification/VerificationAuthenticate.php @@ -21,7 +21,7 @@ { try { - if(!$request->getPeer()->isExternal()) + if(!$request->isExternal()) { return $rpcRequest->produceError(StandardError::FORBIDDEN, 'Only external peers can authenticate using this method'); }