From 24c7b0a2dd6c5d13d8fed73d4d14a78b4338cf73 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Tue, 9 Oct 2018 13:13:50 +0800 Subject: [PATCH] * fix bug #2224. --- module/user/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/user/model.php b/module/user/model.php index 725190bc08..4778912b67 100644 --- a/module/user/model.php +++ b/module/user/model.php @@ -1318,7 +1318,7 @@ class userModel extends model { if(empty($account)) $account = $this->session->user->account; if(empty($account)) return array(); - if(empty($acls) and isset($this->app->user->rights['acls'])) $acls = $this->app->user->rights['acls']; + if(empty($acls) and isset($this->session->user->rights['acls'])) $acls = $this->session->user->rights['acls']; $userView = $this->dao->select('*')->from(TABLE_USERVIEW)->where('account')->eq($account)->fetch(); if(empty($userView)) $userView = $this->computeUserView($account);