public function before() { parent::before(); $this->page = Security::xss_clean((int) $this->request->param('page', 0)); if (empty($this->page)) { $this->page = 1; } }
public function before() { parent::before(); $input = $this->user->has('roles', ORM::factory('role', array('name' => 'redactor'))); if (!$input) { $this->redirect('manage/materials'); } }
public function before() { parent::before(); $this->page = Security::xss_clean((int) $this->request->param('page', 0)); if (empty($this->page)) { $this->page = 1; } $this->sort = Security::xss_clean(Arr::get($_GET, 'sort', 'noreply')); }
public function before() { parent::before(); $input = $this->user->has('roles', ORM::factory('role', array('name' => 'admin'))); if (!$input) { $this->redirect('manage'); } $this->page = Security::xss_clean((int) $this->request->param('page', 0)); if (empty($this->page)) { $this->page = 1; } }