Fixed getting of session scopes

This commit is contained in:
Alex Bilbie 2013-05-05 18:18:37 +01:00
parent 9be23cf222
commit d0abd8c295

View File

@ -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;
}