fix #413: add user-agent check for memories mobile app
This commit is contained in:
parent
29d061c379
commit
c0eb65547d
1 changed files with 4 additions and 0 deletions
|
|
@ -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');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue