I'm logged in when I execute the action. Anyway, someone told me that the 'credentials' option for a generator action specifies which credentials are sufficient to execute that action. It does NOT provide the executor with the specified credentials.
First question: is that true? Second question: if it's true, I'm logged in with a user that has the credential "admin" (in the action new i have checked it using var_dump($this->getUser()->getCredentials());) but i can execute the action new... I expected not to be able to execute it because the necessary credential is "user"... I did "cc". Javier sf 1.4 On Nov 11, 1:49 am, Martin Ibarra Cervantes <ibarra.cervan...@gmail.com> wrote: > You add credentials on your backend when your user has login. > > On Wed, Nov 10, 2010 at 8:01 AM, Javier Garcia <tirengar...@gmail.com> wrote: > > Hi, > > > I have this in the generator.yml of a module: > > > config: > > actions: > > _new: { credentials: [user] }. > > > and I've overwriten the action "new" i mention in the generator.yml > > this way: > > > public function executeNew(sfWebRequest $request) > > { > > > var_dump($this->getCredential()); > > > $this->form = $this->configuration->getForm(); > > $this->Sedi = $this->form->getObject(); > > } > > > When i execute the new action i get "null". I expected to get "user". > > > I did "cc". > > > Any idea? > > > Javier > > > -- > > 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