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
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
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
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
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
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
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
']['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
, 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
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
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
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
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
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
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:
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
']);
}
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
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
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
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
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;
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
. 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
, 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
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
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
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
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
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
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
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
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
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
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
= ''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
. 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
?
(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
-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
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
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
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
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
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
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
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
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
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
...@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
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
. 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
~~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
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
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
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
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
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
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
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! =)
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
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
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
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
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
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
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
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
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
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
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
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
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
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,
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
' = array(
'className' = 'Aro',
'foreignKey' = false,
'conditions' = array(
'FilterAro.id = ArosAco.aro_id',
)
)
)
));
$selected = $this-Aco-find('all
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
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.
--~--~-~--~~~---~--~~
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
admin(){
if ($this-id) {
$node = $this-node();
$type = $node['1']['Aro']['alias'];
if($type=='Admin'){ return true; }
}
return false
] 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
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
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
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 - 100 of 185 matches
Mail list logo