mirror of
https://github.com/friendica/friendica
synced 2025-01-08 10:44:44 +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()
|
||||
];
|
||||
|
||||
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]) {
|
||||
Logger::warning('Requested token scope is not allowed for the application', ['token' => $fields, 'application' => $application]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue