I use $this->User->save($this->data) instead of saveField.
2010/5/24 Jon Chin <[email protected]>
> I'm using Auth and db ACL, but I have an action that screws up my ACL
> records every time. I have ACL set up just like the Book instructs. I'm
> building a "change password" page where I want to just update the password.
> I run the following commands:
> $this->User->id = $this->Session->read('Auth.User.id');
> $this->User->saveField('password', $this->data['User']['password']);
> (I've also tried $this->User->save()). When I execute this, it deletes the
> user's parent_id from the aros table as well as corrupts the tree-ness of
> the ACL tables. What am I doing wrong? Thanks in advance.
>
> 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]<cake-php%[email protected]>For
> more options, visit this group at
> http://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