Fix issue #53 uploading photos

This commit is contained in:
Jonny Barnes 2017-06-22 17:42:21 +01:00
parent d68f30d48b
commit 65a592b016

View file

@ -374,7 +374,7 @@ class MicropubController extends Controller
//check post scope
if ($tokenData->hasClaim('scope')) {
if (stristr($token->getClaim('scope'), 'post') === false) {
if (stristr($tokenData->getClaim('scope'), 'create') === false) {
return $this->returnInsufficientScopeResponse();
}
//check media valid