mirror of
https://github.com/friendica/friendica
synced 2025-01-09 16:44:43 +00:00
Merge pull request #14633 from bmillwood/fix-scope-check
Fix duplicate SCOPE_WRITE check
This commit is contained in:
commit
f9f24b3881
1 changed files with 1 additions and 1 deletions
|
@ -189,7 +189,7 @@ class OAuth
|
||||||
'created_at' => DateTimeFormat::utcNow()
|
'created_at' => DateTimeFormat::utcNow()
|
||||||
];
|
];
|
||||||
|
|
||||||
foreach ([BaseApi::SCOPE_READ, BaseApi::SCOPE_WRITE, BaseApi::SCOPE_WRITE, BaseApi::SCOPE_PUSH] as $scope) {
|
foreach ([BaseApi::SCOPE_READ, BaseApi::SCOPE_WRITE, BaseApi::SCOPE_FOLLOW, BaseApi::SCOPE_PUSH] as $scope) {
|
||||||
if ($fields[$scope] && !$application[$scope]) {
|
if ($fields[$scope] && !$application[$scope]) {
|
||||||
Logger::warning('Requested token scope is not allowed for the application', ['token' => $fields, 'application' => $application]);
|
Logger::warning('Requested token scope is not allowed for the application', ['token' => $fields, 'application' => $application]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue