Re: ACL broken for any one else in 1.1.14.4797?

2007-04-11 Thread Damien

> gwoo has updated the branch.
> :)

Forgive my "noobness", but would I get hold of the updated branch?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: ACL broken for any one else in 1.1.14.4797?

2007-04-11 Thread cherrio

After talking with gwoo on Irc he has suggested a fix,

on ACLnode.php line 113, change the line,
$idList = DataSource::getFieldValue(...

to
$idList = Set::extract(...

gwoo has updated the branch.
:)


On Apr 11, 11:13 am, "cherrio" <[EMAIL PROTECTED]> wrote:
> Hey guys,
>
> had a few minor problems upgrading (because I had customized Session
> component, my own fault :-D), but I think this one is not my fault. I
> get the following error when trying to delete an Aro entry,
>
> Fatal error: Call to undefined function: getfieldvalue() in
> D:\eclipseworkspaces\main_branch\cake\libs\controller\components\dbacl
> \models\aclnode.php
> on line 113
>
> Checking out this line shows it expects the class DataSource to have a
> method getfieldvalue(), which it does not appear to have...
>
> This is the code that makes the ACL/Aro call, it is in my
> users_controller.php,
>
>function delete($id) {
>if($this->User->del($id)) {
>
>$aro = new Aro();
>// delete the corresponding ARO
>$aro->delete($id);
>
>$this->Session->setFlash('The User deleted: id
> '.$id.'');
>$this->redirect('/users/index');
>}
>}
>
> I would be grateful if someone else could try this out before making a
> fool of myself and open a bug report.
>
> thanks,
> Rob


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



ACL broken for any one else in 1.1.14.4797?

2007-04-11 Thread cherrio

Hey guys,

had a few minor problems upgrading (because I had customized Session
component, my own fault :-D), but I think this one is not my fault. I
get the following error when trying to delete an Aro entry,

Fatal error: Call to undefined function: getfieldvalue() in
D:\eclipseworkspaces\main_branch\cake\libs\controller\components\dbacl
\models\aclnode.php
on line 113

Checking out this line shows it expects the class DataSource to have a
method getfieldvalue(), which it does not appear to have...

This is the code that makes the ACL/Aro call, it is in my
users_controller.php,

   function delete($id) {
   if($this->User->del($id)) {

   $aro = new Aro();
   // delete the corresponding ARO
   $aro->delete($id);

   $this->Session->setFlash('The User deleted: id
'.$id.'');
   $this->redirect('/users/index');
   }
   }


I would be grateful if someone else could try this out before making a
fool of myself and open a bug report.

thanks,
Rob


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---