From d0abd8c29502273a36bdc1729cdf603f1c88e803 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Sun, 5 May 2013 18:18:37 +0100 Subject: [PATCH] Fixed getting of session scopes --- src/OAuth2/ResourceServer.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/OAuth2/ResourceServer.php b/src/OAuth2/ResourceServer.php index b30cd32e..f9e51fc5 100644 --- a/src/OAuth2/ResourceServer.php +++ b/src/OAuth2/ResourceServer.php @@ -177,7 +177,10 @@ class ResourceServer $this->ownerType = $result['owner_type']; $this->ownerId = $result['owner_id']; - $this->sessionScopes = $this->storages['session']->getScopes($this->accessToken); + $sessionScopes = $this->storages['session']->getScopes($this->accessToken); + foreach ($sessionScopes as $scope) { + $this->sessionScopes[] = $scope['key']; + } return true; }