/** * 导航菜单 */ public function navAction() { // 如果是普通用户则要判断权限,其它用户则直接跳到列表页 if ($this->priv == 1) { // 是否有列表权限 if (privCheck('profile', 'index')) { $this->gotoUri('profile', 'index'); } elseif (privCheck('profile', 'bugtpl')) { $this->gotoUri('profile', 'bugtpl'); } else { $this->gotoUri('profile', 'invite'); } } else { $this->gotoUri('profile', 'index'); } }
/** * 导航菜单 */ public function navAction() { // 如果是普通用户则要判断权限,其它用户则直接跳到列表页 if ($this->priv == 1) { // 是否有列表权限 if (privCheck('bug', 'index')) { $this->gotoUri('bug', 'index'); } elseif (privCheck('bug', 'add')) { $this->gotoUri('bug', 'add'); } elseif (privCheck('bug', 'search')) { $this->gotoUri('bug', 'search'); } elseif (privCheck('bug', 'report')) { $this->gotoUri('bug', 'report'); } } else { $this->gotoUri('bug', 'index'); } }