|
|
@@ -35,11 +35,7 @@ class ConsoleButton extends ButtonDataTableModalAction implements ClientArea
|
|
|
{
|
|
|
$this->initIds('consoleButton');
|
|
|
$this->setDisableByColumnValue("vmid", 0);
|
|
|
- if(isAdmin()){
|
|
|
- $url = BuildUrl::getSelfUrl() . '&mg-action=novncs';
|
|
|
- } 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']);
|
|
|
}
|