I'm trying to make the admin able to sign out a user when he flags
them from the backend while using SfDoctrineGuardPlugin.  I thought I
got the filter class down:

  public function execute($filterChain)
  {
    //  Use context object since filters don't have direct access to
request or user objects
    $request  = $this->getContext()->getRequest();
    $user     = $this->getContext()->getUser();

    if(!$user->isActive())
      // Do not continue filter chain... sign user out
      return $this->getContext()->getController()-
>forward('sfGuardAuth', 'signout');

    $filterChain->execute();
  }

... with this in the filters yml
is_active:
  class:    sfGuardIsActiveFilter
  param:
    is_active:

... but I'm now getting "Too many forwards."  I kind of understand
what the problem is, but I don't know how to fix it.  I initially
tried making it forward straight to the sfGuardSecurityUser signOut()
method, but it failed to find it.

-- 
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to