* Changed the default jump link of the personnel management block.

This commit is contained in:
tianshujie
2023-03-09 14:56:17 +08:00
parent 17716e6ed9
commit 6c4eb8b8c3
+5
View File
@@ -320,6 +320,11 @@ class adminModel extends model
{
$menu['disabled'] = true;
if(!isset($menu['link'])) $menu['link'] = '';
if($menuKey == 'company')
{
$dept = $this->dao->select('id')->from(TABLE_DEPT)->fetch();
if($dept and common::hasPriv('company', 'browse')) $menu['link'] = helper::createLink('company', 'browse');
}
/* Set links to authorized navigation. */
if(isset($menu['subMenu']))