Have a look at the bundled filters, you'll find your answers there. :)

Daniel

On 02.07.2010, at 02:24, Donald Tyler wrote:

> Excellent, thanks for the pointer.
> 
> Now, it would be perfect if I could do the same from within a filter. Is 
> there a similar method I can use, or is there a way to access the action 
> object from within a filter?
> 
> On Thu, Jul 1, 2010 at 1:59 AM, Tom Ptacnik <to...@tomor.cz> wrote:
> Try this http://www.symfony-project.org/api/1_4/sfAction#method_getcredential
> 
> On 30 čvn, 14:49, Donald <chekot...@gmail.com> wrote:
> > I'm trying to determine what sfGuardPermission was required for an
> > action, from within the action. Is this possible?
> >
> > myModule/config/security.yml:
> >
> > show:
> >   credentials: view something
> >
> > myModule/actions/actions.class.php:
> >
> > class myModuleActions extends sfActions {
> >   public function executeShow(sfRequest $request) {
> >     // determine required credential... (view something)
> >   }
> >
> >
> >
> > }
> 
> --
> If you want to report a vulnerability issue on symfony, please send it to 
> security at symfony-project.com
> 
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
> 
> 
> -- 
> If you want to report a vulnerability issue on symfony, please send it to 
> security at symfony-project.com
>  
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to