浏览代码

finish using console button

andre 4 年之前
父节点
当前提交
99b2256d2e
共有 1 个文件被更改,包括 1 次插入5 次删除
  1. 1 5
      app/UI/Vms/Buttons/ConsoleButton.php

+ 1 - 5
app/UI/Vms/Buttons/ConsoleButton.php

@@ -34,11 +34,7 @@ class ConsoleButton extends ButtonDataTableModalAction implements ClientArea
     {
         $this->initIds('consoleButton');
         $this->setDisableByColumnValue("vmid", 0);
-        if(isAdmin()){
-            $url = "admin/clientsservices.php?userid=3&productselect={$this->getWhmcsParamByKey('serviceid')}&mg-action=novnc";
-        } else {
-            $url = "clientarea.php?action=productdetails&id={$this->getWhmcsParamByKey('serviceid')}&modop=custom&a=management&mg-page=console&mg-action=novnc";
-        }
+        $url = "clientarea.php?action=productdetails&id={$this->getWhmcsParamByKey('serviceid')}&modop=custom&a=management&mg-page=console&mg-action=novnc";
         $this->setRawUrl($url)
             ->setRedirectParams(['vm' => ':id']);
     }