Re: ACL + allow question..

2010-06-23 Thread nils
Hm, no takers?

Ok, I now included *all* controllers with the other user-groups, and
that works all right. But that can't be it, really, can it?

What's the rule re what to allow here? - If I do a simple find (eg.
$this-User-Country-find('list');), do I have to include the country
controller in the allow rules?

I'm pro'ly just missing a tiny, tiny something, so if someone could
shed some light on that, I'd be overjoyed! :)

tia,

nils

On 22 Jun., 16:42, nils nils.th...@gmail.com wrote:
 I'm having my acl etc all properly installed all right, but as soon as
 I try to log into my site using anything apart from the holy admin
 account ($this-Acl-allow($group, 'controllers');) it doesn't work.

 My idea is, that this could be because my Users Model is associated
 with heaps of other Tables/Models.

 Could it be that I need to allow every associated model/controller
 to make it work?

 Please supply some clue, if you can spare any.. ;)

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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: ACL + allow question..

2010-06-23 Thread nils
Got a bit further now: it looks as if it's due to used elements (and
controllers referenced in them) that I have to allow so many
controllers..

Still: where does it start, where does it stop?

I use an element that's referencing a controller/action. Now it
*should* be enough to open up (just) that controller, no?
- But I still need to open up so many more..

C'mon Mr. Auth guru, you must be out there! Show yourself and offer
some clue, please! ;)

On 23 Jun., 09:08, nils nils.th...@gmail.com wrote:
 Hm, no takers?

 Ok, I now included *all* controllers with the other user-groups, and
 that works all right. But that can't be it, really, can it?

 What's the rule re what to allow here? - If I do a simple find (eg.
 $this-User-Country-find('list');), do I have to include the country
 controller in the allow rules?

 I'm pro'ly just missing a tiny, tiny something, so if someone could
 shed some light on that, I'd be overjoyed! :)

 tia,

 nils

 On 22 Jun., 16:42, nils nils.th...@gmail.com wrote:

  I'm having my acl etc all properly installed all right, but as soon as
  I try to log into my site using anything apart from the holy admin
  account ($this-Acl-allow($group, 'controllers');) it doesn't work.

  My idea is, that this could be because my Users Model is associated
  with heaps of other Tables/Models.

  Could it be that I need to allow every associated model/controller
  to make it work?

  Please supply some clue, if you can spare any.. ;)

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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: ACL + allow question..

2010-06-23 Thread Sam
As far as I know, Cake's ACL only has to do with controllers and
actions... nothing at all to do with models. Do you have your ARO and
ACO trees set up properly? Is controllers set as your root node?

On Jun 23, 7:07 am, nils nils.th...@gmail.com wrote:
 Got a bit further now: it looks as if it's due to used elements (and
 controllers referenced in them) that I have to allow so many
 controllers..

 Still: where does it start, where does it stop?

 I use an element that's referencing a controller/action. Now it
 *should* be enough to open up (just) that controller, no?
 - But I still need to open up so many more..

 C'mon Mr. Auth guru, you must be out there! Show yourself and offer
 some clue, please! ;)

 On 23 Jun., 09:08, nils nils.th...@gmail.com wrote:



  Hm, no takers?

  Ok, I now included *all* controllers with the other user-groups, and
  that works all right. But that can't be it, really, can it?

  What's the rule re what to allow here? - If I do a simple find (eg.
  $this-User-Country-find('list');), do I have to include the country
  controller in the allow rules?

  I'm pro'ly just missing a tiny, tiny something, so if someone could
  shed some light on that, I'd be overjoyed! :)

  tia,

  nils

  On 22 Jun., 16:42, nils nils.th...@gmail.com wrote:

   I'm having my acl etc all properly installed all right, but as soon as
   I try to log into my site using anything apart from the holy admin
   account ($this-Acl-allow($group, 'controllers');) it doesn't work.

   My idea is, that this could be because my Users Model is associated
   with heaps of other Tables/Models.

   Could it be that I need to allow every associated model/controller
   to make it work?

   Please supply some clue, if you can spare any.. ;)

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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en