Exemple #1
0
 public function allowAccess($access = null)
 {
     if ($this->isNeedInitialize()) {
         BizSystem::sessionContext()->setVar("_GROUP_INITIALIZE_LASTVIEW", $_SERVER['REQUEST_URI']);
         BizSystem::clientProxy()->redirectPage(APP_INDEX . '/system/initialize_group');
     }
     return parent::allowAccess($access);
 }
 public function allowAccess()
 {
     $result = parent::allowAccess();
     $do = BizSystem::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;
     }
 }