mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-05-31 14:12:07 +05:30
Fixed getting of session scopes
This commit is contained in:
@@ -177,7 +177,10 @@ class ResourceServer
|
|||||||
$this->ownerType = $result['owner_type'];
|
$this->ownerType = $result['owner_type'];
|
||||||
$this->ownerId = $result['owner_id'];
|
$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;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user