What I'm trying to do, is from a logged user (admin, who has all the
permissions), save a new user, in the adminusers controller:   $this-
>User->save($this->data);

 But I realize that after submit the data from the form in the view,
when I debug($this->Auth->user()) it's blank, the current logged users
is deleted.




On Apr 26, 1:07 pm, cricket <[email protected]> wrote:
> On Apr 26, 9:14 am, mau <[email protected]> wrote:
>
>
>
> > Hi guys, thanks for your answers.
>
> > Sorry, I didn't explained it well.
>
> >  The situation is that I've builded an action in the user controller,
> > to let the admin users add manually users to the table. For this
> > purpose I've create a form in the view, which sends the data to an
> > action in the users controller to save the data to the users table:
>
> >  All I do in this action is save the data to the users table, after
> > this, it seems to happens like a sign up action, when the user create
> > an account, send the data to the table, and after this is logged in.
>
> >  I'm  using the Auth and Acl components.
>
> >  Is more clear now? Any help is welcome.
>
> Not much clearer, no. Are you saying that the admin user is now
> literally logged in as the new user? Perhaps you should post the
> controller action.
>
> Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with 
> their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" 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 
> athttp://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" 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/cake-php?hl=en

Reply via email to