Fix scope loading in grants

This commit is contained in:
Lukáš Unger
2016-04-17 13:50:56 +02:00
parent 94a1c18fa9
commit 3904767873
3 changed files with 5 additions and 3 deletions

View File

@@ -215,7 +215,7 @@ abstract class AbstractGrant implements GrantTypeInterface
foreach ($scopesList as $scopeItem) {
$scope = $this->scopeRepository->getScopeEntityByIdentifier($scopeItem);
if (($scope instanceof ScopeEntityInterface) === false) {
if (!$scope instanceof ScopeEntityInterface) {
throw OAuthServerException::invalidScope($scopeItem, $redirectUri);
}