Ejemplo n.º 1
0
 public function allowAccess($access = null)
 {
     if ($this->isNeedInitialize()) {
         Openbiz::$app->getSessionContext()->setVar("_GROUP_INITIALIZE_LASTVIEW", $_SERVER['REQUEST_URI']);
         Openbiz::$app->getClientProxy()->redirectPage(OPENBIZ_APP_INDEX_URL . '/system/initialize_group');
     }
     return parent::allowAccess($access);
 }
 public function allowAccess()
 {
     $result = parent::allowAccess();
     $do = Openbiz::getObject("myaccount.do.PreferenceDO");
     $rs = $do->fetchOne("[user_id]='0' AND  [section]='Register' AND [name]='find_password'");
     $value = $rs->value;
     if ($value == 0 || $value == null) {
         return 0;
     } else {
         return $result;
     }
 }