Improved demo mode plugin

This commit is contained in:
djmaze 2021-11-08 17:40:21 +01:00
parent 2f97d4bafb
commit 70f9f0bd76
4 changed files with 14 additions and 52 deletions

View file

@ -86,7 +86,7 @@ class DemoAccountPlugin extends \RainLoop\Plugins\AbstractPlugin
*/
public function MainFabrica($sName, &$oDriver)
{
if (('storage' === $sName || 'storage-local' === $sName) && \function_exists('apcu_store')) {
if ('storage' === $sName || 'storage-local' === $sName) {
$oAccount = $this->Manager()->Actions()->GetAccount();
if ($this->isDemoAccount($oAccount)) {
require_once __DIR__ . '/storage.php';