Re: Problems with ACL ARO ACO

2014-05-06 Thread Jumy Elerossë
If somebody is so kind to share some kind of tutorial that is known to work properly, I will be really happy ;) On Monday, 5 May 2014 13:07:27 UTC+1, Jumy Elerossë wrote: Hello everyone. I have been struggling with Cake PHP, specially with the part of the ACL, ARO and ACOS. I have been

Re: Problems with ACL ARO ACO

2014-05-06 Thread Dario Savella
I am wressling myself with Acl and I've found helpful to use the AclExtras plugin. There's a convenient (although slow) page that uses checkboxes to grant permissions. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this

Re: Problems with ACL ARO ACO

2014-05-06 Thread Jumy Elerossë
Thank you very much, mate. I will give it a chance. On Tuesday, 6 May 2014 14:41:53 UTC+1, Dario Savella wrote: I am wressling myself with Acl and I've found helpful to use the AclExtras plugin. There's a convenient (although slow) page that uses checkboxes to grant permissions. -- Like

Problems with ACL ARO ACO

2014-05-05 Thread Jumy Elerossë
Hello everyone. I have been struggling with Cake PHP, specially with the part of the ACL, ARO and ACOS. I have been Googling and reading a lot, but the official example seems to be incomplete (looks like incomplete to me), and I can only find out of date examples. I'm using cakephp 2.4.7

Re: AclNode::node() - Couldn't find Aro node identified by Array ( [Aro0.model] = Group [Aro0.foreign_key] = 1 )

2013-11-12 Thread Thiago Ramos
a problem Warning (512): AclNode::node() - Couldn't find Aro node identified by Array ( [Aro0.model] = Group [Aro0.foreign_key] = 1 ) [CORE\cake\libs\model\db_acl.php, line 191] -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com

FullCalendar plugin: Failed ARO/ACO node lookup

2013-06-02 Thread mebibyte
Hey I'm want to use the FullCalendar plugin and my website is working with ACL. I'm have the aclPrep controller for creating the database structure of the aro's and aco's. But I have a problem with plugins, aro/aco lookup fails for everything I try. This is how my datastructures lookes like

Re: FullCalendar plugin: Failed ARO/ACO node lookup

2013-06-02 Thread rchavik
On Sunday, 2 June 2013 16:36:29 UTC+7, mebibyte wrote: Hey I'm want to use the FullCalendar plugin and my website is working with ACL. I'm have the aclPrep controller for creating the database structure of the aro's and aco's. But I have a problem with plugins, aro/aco lookup fails

ERROR: AclNode::node() - Couldn't find Aro node identified by Array ( [Aro0.model] = User [Aro0.foreign_key] = )

2013-05-07 Thread Avo Sarafian
']['password']), 'default', array('class' = 'success')); return $this-redirect('/'); } } *} * Below is the error that I receive: *Notice* (8): Undefined index: id [*CORE/Cake/Model/AclNode.php*, line *140*] AclNode::node() - Couldn't find Aro node

Re: AclNode::node() - Couldn't find Aro node identified by Array ( [Aro0.model] = Group [Aro0.foreign_key] = 1 )

2013-04-02 Thread Robert Denomme
, Jeremy wrote: when I do Auth with cake , I happened a problem Warning (512): AclNode::node() - Couldn't find Aro node identified by Array ( [Aro0.model] = Group [Aro0.foreign_key] = 1 ) [CORE\cake\libs\model\db_acl.php, line 191] -- Like Us on FaceBook https

Acl's Methods $aro param variations

2012-11-07 Thread polutan
Halo folks :) I Need to know variations of Acl's methods $aro param format. Hard to understand AclNode::node() method. I want to cache Acl's methods, but i don't know the variations of $aro param. Thank You :) -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http

Re: Cake 2.1 Problem creating Aro records from existent users

2012-08-27 Thread kani
Yes me too On Tuesday, April 3, 2012 8:44:46 AM UTC+8, Arnold wrote: Hi, I'm trying to implement ACL for my already created application and need to create the aro records for my current existent users. On IRC Ceeram said i just need to load AclBehaviour into my User's model, find all users

Re: ACL: 3 levels ARO?

2012-04-03 Thread jeremyharris
I don't see why this wouldn't work, since Aro's are a tree anyway. For one of my projects, I technically have a 10 level deep Aro setup, where each parent group inherits its children's permissions (that is, if you are of a higher group you can access everything lower groups can). The same

Re: ACL: 3 levels ARO?

2012-04-03 Thread Arnold Roa
So it will work! Great! Thank you. On Tue, Apr 3, 2012 at 8:57 AM, jeremyharris funeralm...@gmail.com wrote: I don't see why this wouldn't work, since Aro's are a tree anyway. For one of my projects, I technically have a 10 level deep Aro setup, where each parent group inherits its children's

Cake 2.1 Problem creating Aro records from existent users

2012-04-02 Thread Arnold Roa
Hi, I'm trying to implement ACL for my already created application and need to create the aro records for my current existent users. On IRC Ceeram said i just need to load AclBehaviour into my User's model, find all users and save it (update any field, i guess) and that will create the ARO row. I

ACL: 3 levels ARO?

2012-04-02 Thread Arnold Roa
Hi, Im building an App for a school managament, we have schools, each school has many teachers and students. We need to allow each school to manage their permission for each teacher and students, both globally and user-specific. For this requirement i think I need an ACL solution with 3 levels:

Re: Disable create new aro item for user while create new user (as requester)

2012-03-25 Thread Angad Nadkarni
controller if you want to disable the ARO creation selectively. If you want to disable it completely, simply don't add the ACL behavior to your user model. On Mar 24, 4:34 pm, baur79 bau...@gmail.com wrote: Hi, i have the working ACL cakephp app (group based ACL) i have users in group and make

Re: [ACL] Disable create new aro item for user while create new user (as requester)

2012-03-25 Thread dtemes
']); } El sábado 24 de marzo de 2012 12:34:02 UTC+1, baur79 escribió: Hi, i have the working ACL cakephp app (group based ACL) i have users in group and make them ACL group-based every time a register new user it creates new ARO for user how can disable to creation in aro table, cause it make

[ACL] Disable create new aro item for user while create new user (as requester)

2012-03-24 Thread baur79
Hi, i have the working ACL cakephp app (group based ACL) i have users in group and make them ACL group-based every time a register new user it creates new ARO for user how can disable to creation in aro table, cause it make the trash rows (60 000 user = 60 rows) user model public $actsAs

Failed ARO/ACO node lookup in permissions check

2012-03-23 Thread rainerpl
Hi I encountered a problem with acl, where a missing acl entry for a user is treated as an error. How could i interpret a missing acl entry as denial. So, if a user doesnt have an ACL entry with his name, then cakephp would assume that the user does not have the requested

cake 1.3 Aro parent_id disappears when user logs for the first time

2011-10-07 Thread nastya
Hi Could you please help me with the following question? I have installed Auth and Acl. I create a new user User1 who is in Group1 (who has aro id 10, for example). There is automatically an Aro created for this user with the Aros table with right is, parent_id, foreign_id, etc... Parent_id

Re: cake 1.3 Aro parent_id disappears when user logs for the first time

2011-10-07 Thread nastya
YES! Found it. Actually the problem was in the function parentNode() in User.php model: function parentNode(){ if(!$this-id empty($this-data)) return null; $data= empty($this-data) ? $this-read() : $this-data; if(empty($data['User']['group_id'])) return null;

2.0 AclNode not finding proper model for Aro

2011-09-21 Thread Corie
I installed a fresh copy of 2.0.0-RC2 and set up a simple UsersController and Model, and enabled Auth and Acl Components. I can log in, but when trying to access any page requiring an Acl-check() I get the following error. Warning (512): AclNode::node() - Couldn't find Aro node identified

Re: Saving ARO taking around 10 seconds, processing tree behavior.

2011-05-31 Thread Tufla
. It is taking around 10 seconds exactly in the point where the save is made: $aro-save(array(          'model'=$model,          'foreign_key'=$id,          'parent_id'=$parent_id,          'alias'=$alias) ); More in deeply, the most time is spent processing

Re: Saving ARO taking around 10 seconds, processing tree behavior.

2011-05-30 Thread Tufla
, Tufla wrote: I have an app working in CakePHP 1.2.1.8004 Currently my ARO's table has up to 43000 rows, and the ARO's save process, every time that a user creates an account, has became really slow. It is taking around 10 seconds exactly in the point where the save is made: $aro

Re: Saving ARO taking around 10 seconds, processing tree behavior.

2011-05-30 Thread Shaz
process, every time that a user creates an account, has became really slow. It is taking around 10 seconds exactly in the point where the save is made: $aro-save(array(          'model'=$model,          'foreign_key'=$id,          'parent_id'=$parent_id,          'alias

Re: Saving ARO taking around 10 seconds, processing tree behavior.

2011-05-27 Thread Tufla
is made: $aro-save(array(          'model'=$model,          'foreign_key'=$id,          'parent_id'=$parent_id,          'alias'=$alias) ); More in deeply, the most time is spent processing the tree behavior in the _setParent(...) method. What can I do to improve the process

Saving ARO taking around 10 seconds, processing tree behavior.

2011-05-26 Thread Tufla
I have an app working in CakePHP 1.2.1.8004 Currently my ARO's table has up to 43000 rows, and the ARO's save process, every time that a user creates an account, has became really slow. It is taking around 10 seconds exactly in the point where the save is made: $aro-save(array

Re: Saving ARO taking around 10 seconds, processing tree behavior.

2011-05-26 Thread Jeremy Burns | Class Outfit
became really slow. It is taking around 10 seconds exactly in the point where the save is made: $aro-save(array( 'model'=$model, 'foreign_key'=$id, 'parent_id'=$parent_id, 'alias'=$alias) ); More in deeply, the most time is spent processing

Re: Warning (512): DbAcl::check() - Failed ARO/ACO node lookup in permissions check.

2011-05-25 Thread Jacob
I have ran cake acl create aco root controllers in the console, and ran the listed build_acl function in the second link. Both say they ran and don't report errors. The build_acl function lists a bunch of created acos. When I remove auth from users and groups, I am able to create a group at

Re: Warning (512): DbAcl::check() - Failed ARO/ACO node lookup in permissions check.

2011-05-20 Thread ShadowCross
Did you create your Access Control Objects? See: http://book.cakephp.org/view/1548/Creating-ACOs-Access-Control-Objects and the subsequent page: http://book.cakephp.org/view/1549/An-Automated-tool-for-creating-ACOs (and http://book.cakephp.org/view/1550/Setting-up-permissions) Basically, any

Warning (512): DbAcl::check() - Failed ARO/ACO node lookup in permissions check.

2011-05-19 Thread Jacob
Using Cake 1.3 I receive the following message after attempting to setup Auth/ACL. This happens on every page within the directory. Can anyone point me toward an area to troubleshoot? I am new to CakePHP Warning (512): DbAcl::check() - Failed ARO/ACO node lookup in permissions check. Node

Warning (512): DbAcl::check() - Failed ARO/ACO node lookup in permissions check.

2011-05-19 Thread Jacob
I have Cake Version 1.3 and I keep receiving this message. It doesn't matter which url I visit, any valid page throws these errors up. It was after Auth ACL and groups were setup. Does anyone know of maybe a quick fix that i am over looking? Warning (512): DbAcl::check() - Failed ARO/ACO node

some error with ARO/ACO ACL

2011-02-01 Thread hoss7
i use cakephp(v1.3.7) ACL i have this error: Warning (512): DbAcl::check() - Failed ARO/ACO node lookup in permissions check. Node references: Aro: Array ( [User] = Array ( [id] = 1 [username] = root [group_id] = 1 [created] = 2011-02-01 07:19:20 [modified] = 2011-02-01 07:50:36 ) ) Aco: Pages

Model as aro and aco

2011-01-18 Thread João Rodrigues
Is it possible to use a model as a request object and a controlled object at the same time? For example, if I have a table of users, can I use ACL so each user can only read and update their own user? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP

CakePHP ACL [Failed ARO/ACO node lookup in permissions check]

2011-01-17 Thread DatacenterHellas
= ''controllers; $aro = 1; $this-AccessControll-getPermission($aco, $aros); and I get this error : Warning (512): DbAcl::check() - Failed ARO/ACO node lookup in permissions check. Node references: Aro: 1 Aco: controllers [CORE\cake\libs\controller\components\acl.php, line 275] [Warning - code] if (empty

Re: CakePHP ACL [Failed ARO/ACO node lookup in permissions check]

2011-01-17 Thread DragonFlyEye
. Also a heads up: you almost certainly will want to use the Console to do a lot of the initial setup for your ACLs. But take a careful look at the code, because the --help menus don't explain what comes first, the ACO or the ARO in the function call. I put in to have the help menu updated - even

Re: Urgent, help: Setting up permission to allow aro to access aco (problem)

2011-01-01 Thread John Maxim
? (1) grant aronode aconode [aco_action] or all         Use this command to grant ACL permissions. Once executed, the ARO         specified (and its children, if any) will have ALLOW access to the         specified ACO action (and the ACO's children, if any).         For more detailed

Re: Urgent, help: Setting up permission to allow aro to access aco (problem)

2010-12-31 Thread John Maxim
-up-permissions I don't know how to set the permission right, can anyone point this out? Is it either we can do one way or both ? (1) grant aronode aconode [aco_action] or all         Use this command to grant ACL permissions. Once executed, the ARO         specified (and its children

Re: (Acl) Error: aro not found No tree returned.

2010-12-31 Thread John Maxim
Applications for E-Biz:http://www.sanisoft.com On Thu, Dec 30, 2010 at 8:39 PM, John Maxim goog...@gmail.com wrote: Hi everyone, While working on the sample provided from cookbook (link below) I was going to create an aro where the codes are to be placed in a controller. I

Re: DbAcl Failed ARO/ACO node lookup (SOLVED accidentally)

2010-12-30 Thread Jon Bennett
hi John, ~~ERROR msg~~ Warning (512): DbAcl::check() - Failed ARO/ACO node lookup in permissions check.  Node references: Aro: User::44 Aco: Post [CORE\cake\libs\controller\components\acl.php, line 273] ~~ The error is shown above. I solved this accidentally, maybe someone could rectify

Re: DbAcl Failed ARO/ACO node lookup (SOLVED accidentally)

2010-12-30 Thread John Maxim
Hi Jon, DbAcl and iniAcl Which one do we commonly use ? Regards, Maxim On Dec 30, 5:48 pm, Jon Bennett jmbenn...@gmail.com wrote: hi John, ~~ERROR msg~~ Warning (512): DbAcl::check() - Failed ARO/ACO node lookup in permissions check.  Node references: Aro: User::44 Aco: Post

Re: DbAcl Failed ARO/ACO node lookup (SOLVED accidentally)

2010-12-30 Thread Jon Bennett
hi john, DbAcl and iniAcl Which one do we commonly use ? Depends on what you need. I go with DbAcl myself. -- jon bennett - www.jben.net - blog.jben.net Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this

Re: DbAcl Failed ARO/ACO node lookup (SOLVED accidentally)

2010-12-30 Thread John Maxim
Ok Jon thanks for the explanation. Regards, Maxim On Dec 30, 6:03 pm, Jon Bennett jmbenn...@gmail.com wrote: hi john, DbAcl and iniAcl Which one do we commonly use ? Depends on what you need. I go with DbAcl myself. -- jon bennett -www.jben.net- blog.jben.net Check out the new

(Acl) Error: aro not found No tree returned.

2010-12-30 Thread John Maxim
Hi everyone, While working on the sample provided from cookbook (link below) I was going to create an aro where the codes are to be placed in a controller. I chose users_controller.php and I then verify by typing on my console: cake acl view aro It resulted in Error: aro not found No tree

Re: (Acl) Error: aro not found No tree returned.

2010-12-30 Thread Amit Badkas
wrote: Hi everyone, While working on the sample provided from cookbook (link below) I was going to create an aro where the codes are to be placed in a controller. I chose users_controller.php and I then verify by typing on my console: cake acl view aro It resulted in Error: aro not found

Re: (Acl) Error: aro not found No tree returned.

2010-12-30 Thread John Maxim
everyone, While working on the sample provided from cookbook (link below) I was going to create an aro where the codes are to be placed in a controller. I chose users_controller.php and I then verify by typing on my console: cake acl view aro It resulted in Error: aro not found No tree

Re: (Acl) Error: aro not found No tree returned.

2010-12-30 Thread Amit Badkas
at 8:39 PM, John Maxim goog...@gmail.com wrote: Hi everyone, While working on the sample provided from cookbook (link below) I was going to create an aro where the codes are to be placed in a controller. I chose users_controller.php and I then verify by typing on my console

Re: (Acl) Error: aro not found No tree returned.

2010-12-30 Thread John Maxim
...@gmail.com wrote: Hi everyone, While working on the sample provided from cookbook (link below) I was going to create an aro where the codes are to be placed in a controller. I chose users_controller.php and I then verify by typing on my console: cake acl view aro It resulted

Re: (Acl) Error: aro not found No tree returned.

2010-12-30 Thread Amit Badkas
Badkas PHP Applications for E-Biz:http://www.sanisoft.com On Thu, Dec 30, 2010 at 8:39 PM, John Maxim goog...@gmail.com wrote: Hi everyone, While working on the sample provided from cookbook (link below) I was going to create an aro where the codes are to be placed

Urgent, help: Setting up permission to allow aro to access aco (problem)

2010-12-30 Thread John Maxim
. Once executed, the ARO specified (and its children, if any) will have ALLOW access to the specified ACO action (and the ACO's children, if any). For more detailed parameter usage info, see help for the 'create' command. (2) this line of code is it placed

DbAcl Failed ARO/ACO node lookup (SOLVED accidentally)

2010-12-29 Thread John Maxim
~~ERROR msg~~ Warning (512): DbAcl::check() - Failed ARO/ACO node lookup in permissions check. Node references: Aro: User::44 Aco: Post [CORE\cake\libs\controller\components\acl.php, line 273] ~~ The error is shown above. I solved this accidentally, maybe someone could rectify if my solution

ACL Aro id problem

2010-12-21 Thread hcentelles
Hi The field aro_id in table aros_acos is the id of the aro or the foreign key of the aro?. The allow method of the acl componet creates the rows with the aro id, but that dont work, in the groups case, only work if the aro id and the foreign key are equals, however if are diferent dont work

Re: ACL Aro id problem

2010-12-21 Thread cricket
aros_acos.aro_id is the FK pointing to aros.id, while the FK point to your Group would be aros.foreign_key. On Tue, Dec 21, 2010 at 3:06 PM, hcentelles hcentel...@gmail.com wrote: Hi The field aro_id in table aros_acos is the id of the aro or the foreign key of the aro?. The allow method

can a group act as both an ARO and an ACO?

2010-09-28 Thread calzone
as both an ACO and an ARO so that it updates the ACOs and AROs automatically whenever a department is created or updated. *** Bonus points: My ACL is actually more complicated than that. The user belongs to a user group as well as a department. The group defines what CRUD actions the user can

Re: can a group act as both an ARO and an ACO?

2010-09-28 Thread calzone
So the answer to my first question is that apparently you can't use actsAs = array('Acl' ...) and define more than one form of 'Acl' -- I tried every combination of nested arrays I could think of and it never worked. It looks like I have to choose one (in my case that will be the ARO table

Re: can a group act as both an ARO and an ACO?

2010-09-28 Thread calzone
in this case, Company, Department, and UserGroup) and then it needs support having ACOs exist in more than one group (two in this case: companies and contacts would be categorized under both Company and Department), and then grant access based on examining the permissions for all instances of the ARO

Re: Ebook : CakePHP 1.3 ACL ACO/ARO Control Panel

2010-08-23 Thread Kyko
I just downloaded it. It looks nice, but I would like to have it in English! =) 2010/8/20 Azril Nazli azril.na...@gmail.com Those who can understand Bahasa Melayu language ( probably who's living in Indonesia,Malaysia,Brunei ) , can read the book. But I use a lot of screenshots in English, so

Re: Ebook : CakePHP 1.3 ACL ACO/ARO Control Panel

2010-08-23 Thread Renato de Freitas Freire
Very nice.. Publish it in google docs... so we can translate to english... (i guess).. Congratz! -- Renato de Freitas Freire ren...@morfer.org On Mon, Aug 23, 2010 at 9:37 PM, Kyko kykoc...@gmail.com wrote: I just downloaded it. It looks nice, but I would like to have it in English! =)

Ebook : CakePHP 1.3 ACL ACO/ARO Control Panel

2010-08-20 Thread Azril Nazli
Those who can understand Bahasa Melayu language ( probably who's living in Indonesia,Malaysia,Brunei ) , can read the book. But I use a lot of screenshots in English, so probably you can follow the tutorial This book is all about building Control Panel to 1. Manage ACOs 2. Assign Permission to

Model like both ACO and ARO in ACL

2010-07-29 Thread marco.rizze...@gmail.com
Hi is it possible use a model in Acl both ARO and ACO? Thanks Marco 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

Re: Model like both ACO and ARO in ACL

2010-07-29 Thread marco.rizze...@gmail.com
Can someone some suggestion for me? Thanks On 29 Lug, 09:41, marco.rizze...@gmail.com marco.rizze...@gmail.com wrote: Hi is it possible use a model in Acl both ARO and ACO? Thanks Marco Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related

Re: Model like both ACO and ARO in ACL

2010-07-29 Thread AD7six
On Jul 29, 1:16 pm, marco.rizze...@gmail.com marco.rizze...@gmail.com wrote: Can someone some suggestion for me? Yes. 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

Re: Model like both ACO and ARO in ACL

2010-07-29 Thread Xander
I didn't find any predefined way to set the model as both Aco Aro, so I made it Aco only and I added some code to afterSave() (when $created is true) and beforeDelete() callbacks wich creates and deletes aro nodes. On 29 Lip, 13:16, marco.rizze...@gmail.com marco.rizze...@gmail.com wrote: Can

Re: Model like both ACO and ARO in ACL

2010-07-29 Thread marco.rizze...@gmail.com
Can you tell me how the model has to be configurated? On 29 Lug, 15:04, AD7six andydawso...@gmail.com wrote: On Jul 29, 1:16 pm, marco.rizze...@gmail.com marco.rizze...@gmail.com wrote: Can someone some suggestion for me? Yes. Check out the new CakePHP Questions site http://cakeqs.org and

Re: Model like both ACO and ARO in ACL

2010-07-29 Thread AD7six
On Jul 29, 4:32 pm, marco.rizze...@gmail.com marco.rizze...@gmail.com wrote: Can you tell me how the model has to be configurated? well, I misread your question. I don't think the core behavior will allow act as both however you can just follow xander's lead. hth, AD Check out the new

Couldn't find Aro node

2010-07-22 Thread Jerre
Hi guys, I'm just starting with cakePHP so don't shoot me if this is a stupid question :) I'm setting up a login system using ACL and Auth and have a table with users, groups and then the acos, aros and aro_acos tables. The ARO objects refer to the groups (so the aro records have a foreign key

Re: How to Prevent Creation of Records in the Aro Table?

2010-06-29 Thread John Andersen
Make sure that you set the model id (the primary key of the user record) before you use saveField! Enjoy, John On Jun 28, 10:41 pm, randy ran...@gmail.com wrote: I am struggling with some Auth/Acl issues at the moment...specifically this. I have a basic Users/Groups setup, I'd like to NOT

How to Prevent Creation of Records in the Aro Table?

2010-06-28 Thread randy
I am struggling with some Auth/Acl issues at the moment...specifically this. I have a basic Users/Groups setup, I'd like to NOT keep a record in the aros table for each user, and instead rely on Groups to determine permissions. I've got some code which creates a one-time password for Users when

Re: Basic ACL question; Why have all users in the ARO?

2010-03-23 Thread Martin Duris
explain this to me, because I'm just having trouble understanding: In the tutorial (http://book.cakephp.org/view/641/Simple-Acl- controlled-Application) the author seems to be suggesting that all users should be listed in the ARO table (and their group updated as needed).  The thing that I don't

Re: Basic ACL question; Why have all users in the ARO?

2010-03-23 Thread xtraorange
It's entirely possible that I may have misread or misunderstood that example.. but it seemed to me like all the users were again in the ARO table. Did I not read that right? What I should really do is rephrase my question: Is there a tutorial that would guide me on use the ACL without adding

Basic ACL question; Why have all users in the ARO?

2010-03-22 Thread xtraorange
Howdy all, Maybe someone can explain this to me, because I'm just having trouble understanding: In the tutorial (http://book.cakephp.org/view/641/Simple-Acl- controlled-Application) the author seems to be suggesting that all users should be listed in the ARO table (and their group updated

Re: ACL - aco/aro creation help

2009-12-08 Thread jodator
From: http://book.cakephp.org/view/648/Setting-up-permissions $group = $this-User-Group; //Allow superadmins to everything $group-id = 1; //if superadmins have $id = 1; $this-Acl-allow($group, 'controllers'); //allow admins $group-id = 2; $this-Acl-allow($group,

ACL - aco/aro creation help

2009-12-07 Thread gautam lakum
Hi all, I am using ACL with my cakePHP application. I want to assign permissions to the users. I have groups table, in which I have 3 types of groups called 1. superadmin 2. admin 3. member The permissions are like superadmin can access all the controllers actions, admin can also access all the

Re: AclNode::node() - Couldn't find Aro node identified by Array ( [Aro0.model] = Group [Aro0.foreign_key] = 1 )

2009-10-30 Thread uyab
On Oct 29, 7:24 pm, merrylin shi shimeilin1...@gmail.com wrote: I am sure  using  the Auth Compoment and  ACL Component  !  I think I do All things about Auth and Acl , but not take effect are you already insert requested object into aros table ? based on your warning message, you should

AclNode::node() - Couldn't find Aro node identified by Array ( [Aro0.model] = Group [Aro0.foreign_key] = 1 )

2009-10-29 Thread merrylin
when I do Auth with cake , I happened a problem Warning (512): AclNode::node() - Couldn't find Aro node identified by Array ( [Aro0.model] = Group [Aro0.foreign_key] = 1 ) [CORE\cake\libs\model\db_acl.php, line 191] --~--~-~--~~~---~--~~ You received

Re: AclNode::node() - Couldn't find Aro node identified by Array ( [Aro0.model] = Group [Aro0.foreign_key] = 1 )

2009-10-29 Thread igotskils
On 29 Okt., 10:08, merrylin shimeilin1...@gmail.com wrote: when I do Auth with cake , I  happened a problem Warning (512): AclNode::node() - Couldn't find Aro node identified by Array (     [Aro0.model] = Group     [Aro0.foreign_key] = 1 ) [CORE\cake\libs\model\db_acl.php, line 191

Re: AclNode::node() - Couldn't find Aro node identified by Array ( [Aro0.model] = Group [Aro0.foreign_key] = 1 )

2009-10-29 Thread merrylin shi
I am sure using the Auth Compoment and ACL Component ! I think I do All things about Auth and Acl , but not take effect --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send

Re: Cake app that manages ACL (ARO/ACO)

2009-09-15 Thread Dakapo
Cake 1.2 ACL ARO/ACO data through a web GUI? --~--~-~--~~~---~--~~ 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

Cake app that manages ACL (ARO/ACO)

2009-09-14 Thread takabanana
Is there an open source (or publicly available) CakePHP app that does the management of standard Cake 1.2 ACL ARO/ACO data through a web GUI? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post

ACL: how to get ARO associated model records given an ACO

2009-07-10 Thread womble
Hi, I'm a relative nooob to cakephp so this may be obvious to someone but its not hitting me in the face. I have setup ACL, and have User and Group models acting as requestors (so when I insert a user or group the ARO table is updated). What I want to do is show the details of the ARO's

ACO / ARO

2009-06-26 Thread Dave Maharaj :: WidePixels.com
If using UUID's as primary key do I then have to edit foreign_key in AROS table to CHAR(36)? What about other fields in ACOS / AROS / AROS_ACOS? Thanks Dave --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Custom methods for Aro and Aco models?

2009-06-03 Thread etipaced
In an attempt to utilize my own ACL system, I have 3 models which I created: - Aro - Aco - AclPermission Each of these correlates with the default Cake ACL tables (aros, acos, aros_acos, respectively). Now I'm trying to write some custom methods in these models but having no luck. When

Re: Custom methods for Aro and Aco models?

2009-06-03 Thread etipaced
Looks like it's a bad idea to create handmade models named Aro and Aco. When I change the model names (still referencing the default Cake tables aros and acos, though), then I'm able to get the expected results from my custom methods and properties. I chose AclRequester and AclControlled as my

Re: What do ARO and ACO stand for?

2009-04-06 Thread trevorsg
ARO - access request object ACO - access control object. On Apr 5, 1:56 pm, bearlee brianleeu...@gmail.com wrote: It a novice quesiton, but these acronyms bother me if I don't know what they mean (my pet-peeves). What do ARO and ACO stand for? -Brian

Re: What do ARO and ACO stand for?

2009-04-06 Thread vikas
Important tutorial on ACL : http://brolly.ca/blog/web-development/cakephp-acl-tutorial/ --~--~-~--~~~---~--~~ 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

What do ARO and ACO stand for?

2009-04-05 Thread bearlee
It a novice quesiton, but these acronyms bother me if I don't know what they mean (my pet-peeves). What do ARO and ACO stand for? -Brian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post

Re: What do ARO and ACO stand for?

2009-04-05 Thread dr. Hannibal Lecter
http://book.cakephp.org/view/465/Understanding-How-ACL-Works Answers are drawing near.. On Apr 5, 8:56 pm, bearlee brianleeu...@gmail.com wrote: It a novice quesiton, but these acronyms bother me if I don't know what they mean (my pet-peeves). What do ARO and ACO stand for? -Brian

Re: Getting all the acos a aro can access?

2008-12-03 Thread Stinkbug
I asked the same question somewhere once. I was pretty much told since the ACL is mptt, that I would have to loop through each object and check it that way. That's what I'm doing. The performance isn't the best especially in our local development environments, but our production server is

Re: Getting all the acos a aro can access?

2008-12-02 Thread AD7six
in the above example the aco for *a* blog post ruleAco represents the aco for a matching rule, which could be the same as theAco or any parent (such as the aco for all posts, or all objects) aros_acos is the permission table ruleAro represents the aro for a matching rule, which could be the same

Re: Getting all the acos a aro can access?

2008-12-02 Thread AD7six
for a matching rule, which could be the same as theAco or any parent (such as the aco for all posts, or all objects) aros_acos is the permission table ruleAro represents the aro for a matching rule, which could be the same as theAro or any parent (such as the aro for all users) theAro represents the specific

Re: Getting all the acos a aro can access?

2008-12-02 Thread Tóth Imre
I did it in a brue force way:), so i am intersted in a smooth solution too.:) 2008/12/1 dr. Hannibal Lecter [EMAIL PROTECTED] I'd like to know this too.. I didn't get the time to look into it in detail, but when I do and if I manage to find a solution I'll post it here. On Nov 29, 11:35

Re: Getting all the acos a aro can access?

2008-12-02 Thread Arthur Pemberton
' = array( 'className' = 'Aro', 'foreignKey' = false, 'conditions' = array( 'FilterAro.id = ArosAco.aro_id', ) ) ) )); $selected = $this-Aco-find('all

Re: Getting all the acos a aro can access?

2008-12-01 Thread dr. Hannibal Lecter
I'd like to know this too.. I didn't get the time to look into it in detail, but when I do and if I manage to find a solution I'll post it here. On Nov 29, 11:35 am, gk [EMAIL PROTECTED] wrote: Hi there I'm trying to work out how to get all the access control objects an access request object

Getting all the acos a aro can access?

2008-11-29 Thread gk
Hi there I'm trying to work out how to get all the access control objects an access request object can access - for example all the blog posts a user can edit. Can anybody point me in the right direction on how to do this? Thanks very much. --~--~-~--~~~---~--~~

ACO/ARO in index functions

2008-11-25 Thread white devil
hi, is there is an easy way to filter object data in the controller for index pages before its sent to the view, based on an aro, without quering the aro/aco tables directly? cheers/ --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Changing views depending on ARO

2008-11-06 Thread rm
admin(){                 if ($this-id) {                         $node = $this-node();                         $type = $node['1']['Aro']['alias'];                         if($type=='Admin'){ return true; }                 }                 return false

Re: Changing views depending on ARO

2008-11-06 Thread rm
] wrote: oh and I forgot, also added this in the user model         function admin(){                 if ($this-id) {                         $node = $this-node();                         $type = $node['1']['Aro']['alias'];                         if($type=='Admin'){ return true

Acl: way to get Acos related to a given Aro?

2008-10-24 Thread Fran Iglesias
Hi, I'm trying to find a way to guess all Acs for a given Aro in Acl. I tried this approach (in a controller, with Acl component) // get node and all parents $aro = new Aro(); $node = $aro-node(array('model' = 'Group', 'id' = 7); // extract id's $ids = Set::extract($node, '{n}.Aro.id

Changing views depending on ARO

2008-10-15 Thread [EMAIL PROTECTED]
Hey all I've just finished implementing cake's authcomponent + acl, Im trying to do something I cant quite figure out now. There are 2 types of users , admin and user (which are also groups), now as soon as a user logs in depending on its parent's aro I should redirect them to one layout

Re: Changing views depending on ARO

2008-10-15 Thread [EMAIL PROTECTED]
I have this at the login action... it works, but its not pretty $this-User-id = $this-Auth-user('id'); $node = $this-User-node(); $type = $node['1']['Aro']['alias']; if($type=='Admin'){ $this- redirect(array('controller'='dashboard','action'='index

  1   2   >