作者 lyh

gx

... ... @@ -24,7 +24,7 @@ class IndexController extends BaseController
*/
public function get_menu(MenuLogic $logic)
{
if($this->manage['id'] == Manage::ADMINISTRATOR_ID){ //超级管理员
if($this->manage['id'] == Manage::ADMINISTRATOR_ID || $this->manage['gid'] == 0){ //超级管理员
$menus = $logic->getAllMenu();
}else{
$menus = $logic->getMenuByGroupId($this->manage['gid']);
... ...