From 7b56008414944322a8a30c49eced87562a28e446 Mon Sep 17 00:00:00 2001 From: nicolaas Date: Fri, 18 Mar 2011 22:17:57 +0000 Subject: [PATCH] BUGFIX error in RestfulServer: currentMember should be currentUser (fixes #6283) http://open.silverstripe.org/ticket/6283 --- api/RestfulServer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/RestfulServer.php b/api/RestfulServer.php index fde7742d0..39d389a84 100644 --- a/api/RestfulServer.php +++ b/api/RestfulServer.php @@ -579,7 +579,7 @@ class RestfulServer extends Controller { protected function authenticate() { if(!isset($_SERVER['PHP_AUTH_USER']) || !isset($_SERVER['PHP_AUTH_PW'])) return false; - if($member = Member::currentMember()) return $member; + if($member = Member::currentUser()) return $member; $member = MemberAuthenticator::authenticate(array( 'Email' => $_SERVER['PHP_AUTH_USER'], 'Password' => $_SERVER['PHP_AUTH_PW'],