Only allow Proxy for logged in users

This commit is contained in:
the-djmaze 2024-11-12 00:35:51 +01:00
parent 0d5d403fb8
commit 8b5547104d

View file

@ -279,7 +279,10 @@ class ServiceActions
public function ServiceProxyExternal() : string
{
$sData = empty($this->aPaths[1]) ? '' : $this->aPaths[1];
if ($sData && $this->Config()->Get('labs', 'use_local_proxy_for_external_images', false)) {
if ($sData
&& $this->Config()->Get('labs', 'use_local_proxy_for_external_images', false)
&& $this->oActions->getAccountFromToken()
) {
$this->oActions->verifyCacheByKey($sData);
$sUrl = \MailSo\Base\Utils::UrlSafeBase64Decode($sData);
if (!empty($sUrl)) {