makes allmutes api work with basicauth, thanks @lambadalambda

This commit is contained in:
Hannes Mannerheim 2017-04-11 10:18:14 +02:00
parent bc5f327a86
commit 88d7b5037d

View File

@ -74,7 +74,7 @@ class ApiQvitterMutesAction extends ApiPrivateAuthAction
{
parent::handle();
$this->target = Profile::current();
$this->target = $this->scoped;
if(!$this->target instanceof Profile) {
$this->clientError(_('You have to be logged in to view your mutes.'), 403);