From fcf50f1bc0963dd927417fdda0122128dd465837 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 6 Apr 2017 13:45:47 +0200 Subject: [PATCH] fix last commit by storing db attribute as wakeup order wakes up acl before parent --- api/src/Acl.php | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/api/src/Acl.php b/api/src/Acl.php index fb23776f98..4e2b00cf75 100644 --- a/api/src/Acl.php +++ b/api/src/Acl.php @@ -91,17 +91,7 @@ class Acl */ function __sleep() { - return array('account_id'); - } - - /** - * Magic method called after object get unserialized - * - * We call __construct to get reference to db again and initialize data emtpy - */ - function __wakeup() - { - $this->__construct($this->account_id); + return array('account_id','db'); } /**************************************************************************\