From d25ef6bb89f07bc8f1217383006f1cec2db4390c Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Wed, 25 Jul 2012 12:22:51 +0100 Subject: [PATCH] Fixed adding scope to a session --- src/Oauth2/Server.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Oauth2/Server.php b/src/Oauth2/Server.php index 7d6b444d..02be4c5b 100644 --- a/src/Oauth2/Server.php +++ b/src/Oauth2/Server.php @@ -284,9 +284,9 @@ maintenance of the server.' ); // Add the scopes - foreach ($scopes as $scope) { + foreach ($scopes as $key => $scope) { - $this->db->addSessionScope($sessionId, $scope); + $this->db->addSessionScope($sessionId, $scope['scope']); }