Changes between Version 6 and Version 7 of iPeerSecurity
- Timestamp:
- 2010-06-16T22:37:54Z (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
iPeerSecurity
v6 v7 7 7 The method will check the requested controller name against the database (specifically, the contents of `sysContainer->getActionList())`), and if any entry with this controller is found, it keep processing the page. Otherwise, it redirects the client to `loginlout/login`. Specifically which method will the client requests to be invoked, is, apparently, no concidered. 8 8 {{{ 9 //check permission 10 if (!$this->rdAuth->check($this->params['controller'], $this->sysContainer->getActionList())) 11 { 12 $this->Session->write('URL', $URL); 13 $this->Session->write('AccessErr', 'NO_PERMISSION'); 14 $redirect = 'loginout/login'; 15 $this->redirect($redirect); 16 exit; 17 } 9 //check permission 10 if (!$this->rdAuth->check($this->params['controller'], $this->sysContainer->getActionList())) { 11 $this->Session->write('URL', $URL); 12 $this->Session->write('AccessErr', 'NO_PERMISSION'); 13 $redirect = 'loginout/login'; 14 $this->redirect($redirect); 15 exit; 16 } 18 17 }}} 19 18 === Users_controller, evaluations_controller, and some others ===