From 65a592b01697c352db74c65ec6cb7f31315a88d7 Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Thu, 22 Jun 2017 17:42:21 +0100 Subject: [PATCH] Fix issue #53 uploading photos --- app/Http/Controllers/MicropubController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/MicropubController.php b/app/Http/Controllers/MicropubController.php index 362e1c64..8a1b9dfb 100644 --- a/app/Http/Controllers/MicropubController.php +++ b/app/Http/Controllers/MicropubController.php @@ -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