X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FBaseApi.php;h=29ca755e05f949522189a5ee91111de259748dcd;hb=d86045058e7f507de9f9583ac03bdbb196d86695;hp=1d5249ac85f70481566d9d297e856fc9ddba2613;hpb=8397ccf37c2733ae74a997dab31ac55c1762a402;p=friendica.git diff --git a/src/Module/BaseApi.php b/src/Module/BaseApi.php index 1d5249ac85..29ca755e05 100644 --- a/src/Module/BaseApi.php +++ b/src/Module/BaseApi.php @@ -1,6 +1,6 @@ args->getMethod()) { @@ -89,15 +90,15 @@ class BaseApi extends BaseModule case Router::POST: case Router::PUT: self::checkAllowedScope(self::SCOPE_WRITE); - + if (!self::getCurrentUserID()) { throw new HTTPException\ForbiddenException($this->t('Permission denied.')); } break; - } + } } - return parent::run($request); + return parent::run($httpException, $request); } /**