Пример #1
0
	function beforeFilter() {
		$this->Auth->allow('index');
		$this->Auth->allow('add');
		$this->Auth->allow('edit');
		$this->Auth->allow('list');
		$this->Auth->allow('delete');
		$this->Auth->allow('view');

		//表示権限がない場合はリダイレクト
		$ret=UsersController::_page_check();
		if ( $ret == 0 ){
			$this->redirect('/');
		}
	}