public function getWhiteLabelId() { if (ViewsTrack::isDev()) { return 3; } return parent::getWhiteLabelId(); }
/** * HANDLING THE WHITE LABEL ACCOUNTS */ public function getWhiteLabelId() { if ($this->isLoggedIn()) { // called from siteadmin if ($this->isSuperadmin()) { // for superadmin get default White Label Id return $this->getDefaultWhiteLabelId(); } else { // get account of the logged user return $this->model->wlabel_id; } } else { return parent::getWhiteLabelId(); } }