Fix issue #53 uploading photos
This commit is contained in:
parent
d68f30d48b
commit
65a592b016
1 changed files with 1 additions and 1 deletions
|
@ -374,7 +374,7 @@ class MicropubController extends Controller
|
||||||
|
|
||||||
//check post scope
|
//check post scope
|
||||||
if ($tokenData->hasClaim('scope')) {
|
if ($tokenData->hasClaim('scope')) {
|
||||||
if (stristr($token->getClaim('scope'), 'post') === false) {
|
if (stristr($tokenData->getClaim('scope'), 'create') === false) {
|
||||||
return $this->returnInsufficientScopeResponse();
|
return $this->returnInsufficientScopeResponse();
|
||||||
}
|
}
|
||||||
//check media valid
|
//check media valid
|
||||||
|
|
Loading…
Add table
Reference in a new issue