public function allowAccess() { parent::allowAccess(); if (Openbiz::$app->getUserProfile("Id")) { return 1; } else { return 0; } }