fix #413: add user-agent check for memories mobile app

This commit is contained in:
Simon Vieille 2025-04-17 15:15:03 +02:00
commit c0eb65547d
Signed by untrusted user: deblan
GPG key ID: 579388D585F70417

View file

@ -106,6 +106,10 @@ class Application extends App implements IBootstrap
protected function isEnabled(): bool
{
if (preg_match('/MemoriesNative/', $_SERVER['HTTP_USER_AGENT'])) {
return false;
}
$enabled = true;
$isForced = (bool) $this->config->getAppValue(self::APP_ID, 'force', '0');