Skip to content

Commit

Permalink
Use correct permission for proxy (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
imorland authored Jul 1, 2022
1 parent 8b12b76 commit 32dcf58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Api/Controllers/GetImageUrlController.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function handle(ServerRequestInterface $request): ResponseInterface
*/
$actor = RequestUtil::getActor($request);

$actor->assertCan('viewDiscussions');
$actor->assertCan('viewForum ');

$imgurl = urldecode(Arr::get($request->getQueryParams(), 'imgurl'));
$host = parse_url($imgurl, PHP_URL_HOST);
Expand Down

0 comments on commit 32dcf58

Please sign in to comment.