Re: how can I change current requested action?

2006-04-09 Thread Samuel DeVore
$this-requestAction() might help here look in manual Sam D On 4/9/06, Alexey Baranovskiy [EMAIL PROTECTED] wrote: I need to change requested action. For example: User requested this url - www.domain.com/articles/edit/1, but he isn't authorised. I need to change action edit to action

Re: how can I change current requested action?

2006-04-09 Thread Larry E. Masters aka PhpNut
... function beforeFilter() { if (!$this-Permission-checkPermission($this-name, $this-action)) { return $this-denied(); } ... function denied() { } -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */

Re: how can I change current requested action?

2006-04-09 Thread scott lewis
On 09-Apr-2006, at 17.48, Larry E. Masters aka PhpNut wrote: function beforeFilter() { if (!$this-Permission-checkPermission($this-name, $this-action)) { return $this-denied(); } Perhaps function beforeFilter() { if (!$this-Permission-checkPermission($this-name, $this- action)) {