This commit is contained in:
daitingting
2024-02-20 14:27:26 +08:00
parent 3f3257b3f9
commit 239ef60e4e
+10 -6
View File
@@ -1107,13 +1107,17 @@ class my extends control
/* Get users by dept. */
$deptID = $this->app->user->admin ? 0 : $this->app->user->dept;
$users = $this->loadModel('company')->getUsers('inside', 'bydept', 0, $deptID, $sort, $pager);
foreach($users as $user) unset($user->password); // Remove passwd.
foreach($users as $user)
{
unset($user->password); // Remove passwd.
$user->last = $user->last ? date(DT_DATETIME1, $user->last) : '';
}
$this->view->title = $this->lang->my->team;
$this->view->users = $users;
$this->view->deptID = $deptID;
$this->view->orderBy = $orderBy;
$this->view->pager = $pager;
$this->view->title = $this->lang->my->team;
$this->view->users = $users;
$this->view->deptID = $deptID;
$this->view->orderBy = $orderBy;
$this->view->pager = $pager;
$this->display();
}