public function allowAccess() { parent::allowAccess(); if (Openbiz::$app->getUserProfile("Id")) { return 1; } else { return 0; } }
public function allowAccess($access = null) { $initLock = OPENBIZ_APP_PATH . '/files/initialize_profile.lock'; if (is_file($initLock)) { $pageURL = OPENBIZ_APP_INDEX_URL . "/system/general_default"; Openbiz::$app->getClientProxy()->redirectPage($pageURL); return; } return parent::allowAccess($access); }
public function allowAccess() { return parent::allowAccess(); }