Proxy: Avoid access for not logged in users

This commit is contained in:
Michael 2021-07-04 10:55:32 +00:00
parent 3780e51806
commit da484a48e3

View File

@ -45,8 +45,12 @@ class Proxy extends BaseModule
* Sets application instance and checks if /proxy/ path is writable.
*
*/
public static function init(array $parameters = [])
public static function rawContent(array $parameters = [])
{
if (!local_user()) {
throw new \Friendica\Network\HTTPException\ForbiddenException(DI::l10n()->t('Access denied.'));
}
// Set application instance here
$a = DI::app();