Commit 7067331e authored by Oliver Bartsch's avatar Oliver Bartsch

[TASK] Fix typo

parent 21347e5b
Pipeline #10145 passed with stages
in 6 minutes and 13 seconds
......@@ -182,11 +182,11 @@ abstract class AbstractGrant implements GrantInterface
$extensions = $request->getAttribute('routing')->offsetGet('routeArguments')->getPropertyValue('extensions');
$allowedExtensions = $this->extensionRepository->findExtensionKeysForUser($user->getName());
// Skip adding extensions if non were requested, the user does not have any
// Skip restricting extensions if non were requested, the user does not have any
// extensions to restrict or in case the requesting user (the current API user)
// is a controller and also requested a controller scope. Later means the token
// will allow the user to access all extensions since it will be a "controller"
// token, so we don't have to add any restrictions.
// is a controller and also requested a controller scope. The latter means the
// token will allow the user to access all extensions since it will be a so called
// "controller" token, so we don't have to add any restrictions.
if ($extensions === null
|| $allowedExtensions === []
|| ($user->getScope()->isController() && (new Scope($requestedScope))->isController())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment