fix #413: add user-agent check for memories mobile app
This commit is contained in:
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user