Merge pull request 'fix #413: add user-agent check for memories mobile app' (#414) from bugfix/issues413-memories into develop

Reviewed-on: https://gitnet.fr/deblan/side_menu/pulls/414
This commit is contained in:
Simon Vieille
2025-04-18 10:36:15 +02:00
+4
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');