Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
E
extensions.typo3.org
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
60
Issues
60
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
9
Merge Requests
9
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
services
T
t3o sites
extensions.typo3.org
extensions.typo3.org
Commits
7067331e
Commit
7067331e
authored
Dec 02, 2020
by
Oliver Bartsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TASK] Fix typo
parent
21347e5b
Pipeline
#10145
passed with stages
in 6 minutes and 13 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
extensions/ter_rest/Classes/Authentication/Bearer/Grant/AbstractGrant.php
...est/Classes/Authentication/Bearer/Grant/AbstractGrant.php
+4
-4
No files found.
extensions/ter_rest/Classes/Authentication/Bearer/Grant/AbstractGrant.php
View file @
7067331e
...
...
@@ -182,11 +182,11 @@ abstract class AbstractGrant implements GrantInterface
$extensions
=
$request
->
getAttribute
(
'routing'
)
->
offsetGet
(
'routeArguments'
)
->
getPropertyValue
(
'extensions'
);
$allowedExtensions
=
$this
->
extensionRepository
->
findExtensionKeysForUser
(
$user
->
getName
());
// Skip
add
ing extensions if non were requested, the user does not have any
// Skip
restrict
ing 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
())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment