function _initialize()
 {
     //预处理
     parent::_initialize();
     if (!in_array($this->user['username'], $this->admin, true)) {
         $this->error("Insufficient privileges!");
     }
 }
 function _initialize()
 {
     //预处理
     parent::_initialize();
     /*if ($_SESSION["info"]['']) {
     			$this->error("Insufficient privileges!");
     		}*/
     $rudao = D("RoleUser");
     $condition = array("user_id" => $this->user['uid']);
     $data = array();
     $data = $rudao->where($condition)->find();
     if (!count($data) > 0) {
         $this->error("Insufficient privileges!");
     } else {
         $data['per'] = unserialize($data['permissions']);
         $this->user_per = $data;
         $this->assign("permissions", $this->permissions);
         $this->assign("per", $data);
     }
 }