public function canViewReport($view)
 {
     if (!I2CE_MagicDataNode::checkKey($view)) {
         return false;
     }
     $config = I2CE::getConfig()->modules->CustomReports;
     if ($config->is_scalar("reportViews/{$view}/limit_view_to") && $config->reportViews->{$view}->limit_view_to) {
         if (!$this->hasPermission(' task(custom_reports_admin) or ' . $config->reportViews->{$view}->limit_view_to)) {
             return false;
         }
     }
     return iHRIS_Module_SelfService::hasReport($view);
     $registered_reports = array();
     I2CE::getConfig()->setIfIsSet($registered_reports, "/modules/SelfService/reports", true);
     return in_array($view, $registered_reports);
 }
 /**
  *Check to see if we are creating a new user
  * @returns boolean
  */
 protected function creatingNewUser()
 {
     return iHRIS_Module_SelfService::selfRegister();
     //return ($this->request_exists('user_choice') && $this->request('user_choice') == 'new' );
 }