* Fix execution team info error.

This commit is contained in:
holan20180123
2021-04-19 11:43:31 +08:00
parent cab9785e00
commit 796bafb2ca
9 changed files with 24 additions and 5 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ class user extends control
$todos = $this->todo->getList($type, $account, $status, 0, $pager, $sort);
$date = (int)$type == 0 ? helper::today() : $type;
$users = $this->loadModel('dept')->getDeptUserPairs($this->app->user->dept, 'useid');
if(!isset($users[$userID])) die(js::error($this->lang->notFound) . js::locate('back'));
if(!isset($users[$userID])) die(js::error($this->lang->user->error->noAccess) . js::locate('back'));
/* set menus. */
$this->view->userList = $this->user->setUserList($users, $userID);