Re: Acl and bindNode

2011-07-21 Thread Femi Fadeyi
I have this same issue but while reading through this thread, it just seems to come to an end without a good resolution. I tried the work-around suggested by Parallel 32 but it hasn't changed anything for me. Does anyone have any suggestions about how to go about this? Thanks! -- Our newest s

Re: Acl and bindNode()

2011-01-08 Thread Jeremy Burns | Class Outfit
I've been advised to look at the new ACL behaviour as it might hold the key. I haven't done so yet, so can't vouch. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 8 Jan 2011, at 10:05, Jens Dittrich wrote: > So it seems that the documentation is correct reg

Re: Acl and bindNode()

2011-01-08 Thread Jens Dittrich
So it seems that the documentation is correct regarding the desired result but inconsistent in the example. So I have to live with the fact that my Users are still added to the Aro table, even though the example in the book implies something else. Thank you! On 7 Jan., 23:30, cricket wrote: > On

Re: Acl and bindNode()

2011-01-07 Thread cricket
On Fri, Jan 7, 2011 at 7:25 AM, Jens Dittrich wrote: > Hi all! > > I have a little problem with the Acl. I have Users beloging to Roles. > I want to set my Acl to check the Roles only, since a per User based > system is not planned. So I followed the tutorial from the Book 1.3 > (http://book.cakep

Acl and bindNode()

2011-01-07 Thread Jens Dittrich
Hi all! I have a little problem with the Acl. I have Users beloging to Roles. I want to set my Acl to check the Roles only, since a per User based system is not planned. So I followed the tutorial from the Book 1.3 (http://book.cakephp.org/view/1547/Acts-As-a-Requester) where it describes the same

Re: Acl and bindNode

2011-01-02 Thread dtemes
using bindNode does not have any effect on the aros table for me neither (cake 1.3.6) and user registers are still created, but i have realized that it has an impact in some of the acl lookup queries: With bindNode: SELECT `Aro`.`id`, `Aro`.`parent_id`, `Aro`.`model`, `Aro`.`foreign_key`, `Aro`.`

Re: Acl and bindNode

2010-12-08 Thread nachopitt
Hi Soichi. I think the problem seems to be that you are using the Acl Component instead of the Acl Behavior. The code will be only executed if your User model has the ACL Behavior attached to it. The ACL Component has another purporse. On 7 dic, 14:03, Soichi Hayashi wrote: > Hi. I started using

Re: Acl and bindNode

2010-12-07 Thread Soichi Hayashi
Hi. I started using CakePHP 3 days ago, and I am using Cake 1.3.6. I am having the same problem reported in this thread. I have following in my User model //make ACL group only (http://book.cakephp.org/view/1547/Acts-As-a- Requester) function bindNode($user) { return a

Re: Acl and bindNode

2010-11-27 Thread parallel32
A very minor change to the core, but you're right nutesco it would break upgrades. So far the fix is holding steady on my deployments so I'm going to submit it as a bug and perhaps they can permanently fix it for the next release. If anyone has a userland fix that would be even better in case it

Re: Acl and bindNode

2010-11-23 Thread netusco
I just had the same problem, it really looks like a bug on cakephp... It was working when ids of groups where the same as ids of aros, but not working when different. I agree with parallel 32 but I would prefer not to use his approach as it would break in any upgrading... Is there anyone who cou

Re: Acl and bindNode

2010-11-22 Thread Jeremy Burns | Class Outfit
See the previous reply in this thread that arrived yesterday - haven't followed it through yet. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 21 Nov 2010, at 22:49, Rajat wrote: > i m also facing this issue. > did u get any official updates on this? >

Re: Acl and bindNode

2010-11-22 Thread Rajat
i m also facing this issue. did u get any official updates on this? On Nov 4, 1:34 am, Jeremy Burns | Class Outfit wrote: > I'm still really hoping that someone with some inside knowledge can shed a > light on this for me. > > Jeremy Burns > Class Outfit > > jeremybu...@classoutfit.comhttp:/

Re: Acl and bindNode

2010-11-21 Thread parallel32
I believe I've found the problem. I've also figured out a work around. I'm running cake 1.3.6 If you include bindNode in the user model: function bindNode($user) { return array('Group' => array('id' => $user['User'] ['group_id'])); } a certain stanza of code is executed in

Re: Acl and bindNode

2010-11-04 Thread Marc Divins
Same here, I tried to do itbe cause I always use permissions thinking on groups/roles. Despite doing same as example, users are still added to AROs table. I hope we got something soon :) On 3 nov, 21:34, Jeremy Burns | Class Outfit wrote: > I'm still really hoping that someone with some inside kn

Re: Acl and bindNode

2010-11-03 Thread Jeremy Burns | Class Outfit
I'm still really hoping that someone with some inside knowledge can shed a light on this for me. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 1 Nov 2010, at 07:24, Jeremy Burns | Class Outfit wrote: > Because the users table has a group_id on it. > > Jer

Re: Acl and bindNode

2010-11-02 Thread Chris.
I haven't been able to get it to work as advertised. I believe that (short of the documentation being wrong), it is a bug. Chris. On Oct 29, 5:23 am, Jeremy Burns | Class Outfit wrote: > Anybody else got any more ideas on this? Anyone using it with success? > > Jeremy Burns > Class Outfit > > j

Re: Acl and bindNode

2010-11-01 Thread Jeremy Burns | Class Outfit
Because the users table has a group_id on it. Duh. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 31 Oct 2010, at 14:48, huoxito wrote: > Guess I dont get your point. > > Users still must de added on Aro's table, otherwise how would your > system know that

Re: Acl and bindNode

2010-10-31 Thread huoxito
Guess I dont get your point. Users still must de added on Aro's table, otherwise how would your system know that an user A belongs to group ALFA ? On 29 out, 08:23, Jeremy Burns | Class Outfit wrote: > Anybody else got any more ideas on this? Anyone using it with success? > > Jeremy Burns > Clas

Re: Acl and bindNode

2010-10-29 Thread Jeremy Burns | Class Outfit
Anybody else got any more ideas on this? Anyone using it with success? Jeremy Burns Class Outfit jeremybu...@classoutfit.com (t) +44 (0) 208 123 3822 (m) +44 (0) 7973 481949 Skype: jeremy_burns http://www.classoutfit.com On 27 Oct 2010, at 17:10, Jeremy Burns | Class Outfit wrote: > I wish that

Re: Acl and bindNode

2010-10-27 Thread Jeremy Burns | Class Outfit
I wish that were the case, but the guide then gives an example of the aros table, which only includes groups: http://book.cakephp.org/view/1547/Acts-As-a-Requester Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 27 Oct 2010, at 13:41, cricket wrote: > On T

Re: Acl and bindNode

2010-10-27 Thread cricket
On Tue, Oct 26, 2010 at 4:40 PM, Jeremy Burns wrote: > According to the online tutorial: > > " > In case we want simplified per-group only permissions, we need to > implement bindNode() in User model. > Code View > > function bindNode($user) { >    return array('Group' => array('id' => $user['User

Acl and bindNode

2010-10-26 Thread Jeremy Burns
According to the online tutorial: " In case we want simplified per-group only permissions, we need to implement bindNode() in User model. Code View function bindNode($user) { return array('Group' => array('id' => $user['User']['group_id'])); } function bindNode($user) { return array