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  wrote:

> I just downloaded it. It looks nice, but I would like to have it in
> English! =)
>
> 2010/8/20 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 AROs ( users ) to ACOs ( Controllers/Action )
>>
>> Language : Bahasa Melayu
>> ScribD :
>> http://www.scribd.com/doc/36175172/CakePHPPanelKawalanACL-AzrilNazli
>>
>>
>> Azril Nazli
>>
>> 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.comFor
>>  more options, visit this group at
>> http://groups.google.com/group/cake-php?hl=en
>>
>
>
>
> --
> [-=K¥KØ=-] =)
>
>  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.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

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: 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 

> 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 AROs ( users ) to ACOs ( Controllers/Action )
>
> Language : Bahasa Melayu
> ScribD :
> http://www.scribd.com/doc/36175172/CakePHPPanelKawalanACL-AzrilNazli
>
>
> Azril Nazli
>
> 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.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>



-- 
[-=K¥KØ=-] =)

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


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 AROs ( users ) to ACOs ( Controllers/Action )

Language : Bahasa Melayu
ScribD : http://www.scribd.com/doc/36175172/CakePHPPanelKawalanACL-AzrilNazli


Azril Nazli

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 - 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, 'controllers');
$this->Acl->deny($group, 'controllers/Users/new_admin');


//allow users to only add and edit on posts and widgets
$group->id = 3;
$this->Acl->deny($group, 'controllers');
$this->Acl->allow($group, 'controllers/YourController/
new_dealer');
$this->Acl->allow($group, 'controllers/YourController/
add_review');
 and so on

All actions accessible by all users should be defined in beforeFilter
in each controller:

$this->Auht->allow('search', ... );

Hope this helps

On Dec 8, 8:05 am, gautam lakum  wrote:
> 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 actions but can't access
> new_admin action. new_admin can be accessed only by super admin.
> members can't access admin actions. They can access only login,
> logout, search, profile, new_dealer, add_review actions.
>
> So please help me, what should be there in aros and acos table. and
> also aros_acos table. I am too much confused. If possible, please
> reply with some easy example. I found some e.g. but they were
> confusing me.
>
> Thank you.

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


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 actions but can't access
new_admin action. new_admin can be accessed only by super admin.
members can't access admin actions. They can access only login,
logout, search, profile, new_dealer, add_review actions.

So please help me, what should be there in aros and acos table. and
also aros_acos table. I am too much confused. If possible, please
reply with some easy example. I found some e.g. but they were
confusing me.

Thank you.

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


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 
"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
-~--~~~~--~~--~--~---



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 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: error when creating aco | aro with cake console cake 1.2

2008-01-23 Thread cmbg

Nevermind, I added

use('string');

to the cake/libs/set.php file


On Jan 23, 3:36 pm, cmbg <[EMAIL PROTECTED]> wrote:
> I get this problem as well.  Was this reported?  Did you get a
> workaround?
>
> On Jan 4, 5:32 am, polutan <[EMAIL PROTECTED]> wrote:
>
> > I got this error when i run this command : cakeaclcreate aco / ROOT
> > Fatal error: Undefined class name 'string' in D:\tohtdocs\MyBand\cake
> > \libs\model
> > \datasources\dbo_source.php on line 1456
>
> > what must i have to do ? help me please
>
> > thank you
--~--~-~--~~~---~--~~
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: error when creating aco | aro with cake console cake 1.2

2008-01-23 Thread cmbg

I get this problem as well.  Was this reported?  Did you get a
workaround?

On Jan 4, 5:32 am, polutan <[EMAIL PROTECTED]> wrote:
> I got this error when i run this command : cakeaclcreate aco / ROOT
> Fatal error: Undefined class name 'string' in D:\tohtdocs\MyBand\cake
> \libs\model
> \datasources\dbo_source.php on line 1456
>
> what must i have to do ? help me please
>
> thank you
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



error when creating aco | aro with cake console cake 1.2

2008-01-04 Thread polutan

I got this error when i run this command : cake acl create aco / ROOT
Fatal error: Undefined class name 'string' in D:\tohtdocs\MyBand\cake
\libs\model
\datasources\dbo_source.php on line 1456

what must i have to do ? help me please

thank you

--~--~-~--~~~---~--~~
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 question: ACO-ARO links not being set as expected. Why?

2007-09-07 Thread Paul

Anyone any ideas? Surely ACL shouldn't be this hard?

By the way, I'm using PHP 5 and Cake 1.2.


On 31 Aug, 10:44, Paul <[EMAIL PROTECTED]> wrote:
> Hi there,
>
> I'm getting more and more frustrated withACL, so please someone help
> me before I drive myself mad! I'm sure once I'm over this last hurdle
> it'll all fall into place :)
>
> If i do this:
>
> $this->Acl->deny($aroNode,$acoNode);
>
> then all the _read, _update etc. fields in the aros_acos table are set
> to -1 (or 1 if I'd used allow). So far so good!
>
> However, If I have an array of 'actions', like this:
>
> $actions = Array('read','update');
>
> And I set permissions like this:
>
> $this->Acl->allow($aroNode,$acoNode,$actions);
>
> Then _read and _update are set to 1 (as expected), but the rest are
> set to zero - they are not left as they are (I explicitly do a deny
> all before I call allow). This doesn't seem right to me - I would've
> thought 'allowing' a set of permissions would leave the others
> untouched?
>
> Try as I might I can't work out where in the cake source it's doing
> this setting to zero.
>
> However, I have found out that when I do this:
>
> $this->Acl->check('create')
>
> ...a zero causes it to 'continue' and look further up the hierarchy,
> towards the parent, and get the permission from there.
>
> Myaconodes are in a hierarchy, so this means I can't deny a child
> access to something a parent has access to! (because if I deny all and
> then allow the ones I want, then check looks to the parent for the
> one's I didn't explictly allow)
>
> Am I misunderstanding things? Has anyone else had this problem?
>
> Thanks in advance,
> Paul.


--~--~-~--~~~---~--~~
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 question: ACO-ARO links not being set as expected. Why?

2007-08-31 Thread Paul

Hi there,

I'm getting more and more frustrated with ACL, so please someone help
me before I drive myself mad! I'm sure once I'm over this last hurdle
it'll all fall into place :)

If i do this:

$this->Acl->deny($aroNode,$acoNode);

then all the _read, _update etc. fields in the aros_acos table are set
to -1 (or 1 if I'd used allow). So far so good!

However, If I have an array of 'actions', like this:

$actions = Array('read','update');

And I set permissions like this:

$this->Acl->allow($aroNode,$acoNode,$actions);

Then _read and _update are set to 1 (as expected), but the rest are
set to zero - they are not left as they are (I explicitly do a deny
all before I call allow). This doesn't seem right to me - I would've
thought 'allowing' a set of permissions would leave the others
untouched?

Try as I might I can't work out where in the cake source it's doing
this setting to zero.

However, I have found out that when I do this:

$this->Acl->check('create')

...a zero causes it to 'continue' and look further up the hierarchy,
towards the parent, and get the permission from there.

My aco nodes are in a hierarchy, so this means I can't deny a child
access to something a parent has access to! (because if I deny all and
then allow the ones I want, then check looks to the parent for the
one's I didn't explictly allow)

Am I misunderstanding things? Has anyone else had this problem?

Thanks in advance,
Paul.


--~--~-~--~~~---~--~~
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: DBACL aco aro group design

2006-04-06 Thread Jon Bennett

> $aco = new Aco();
>
> //Create some access control objects:
> $aco->create(1, null, 'Admin Apps');
> $aco->create(2, 'Admin Apps', 'Users');
> $aco->create(3, 'Admin Apps', 'News');
> $aco->create(4, 'Admin Apps', 'Pages');
> $aco->create(5, 'Admin Apps', 'Store');
> $aco->create(6, 'Admin Apps', 'Orders');
>
> //Create some access control objects:
> $aco->create(7, null, 'Admin Roles');
> $aco->create(8, 'Admin Roles', 'contributor');
> $aco->create(9, 'contributor', 'editor');
> $aco->create(10, 'editor', 'manager');
>
> //Create some access control objects:
> $aco->create(11, null, 'Access Levels');
> $aco->create(12, 'Access Levels', 'basic');
> $aco->create(13, 'basic', 'bronze');
> $aco->create(14, 'bronze', 'silver');
> $aco->create(15, 'silver', 'gold');

and some ARO's

$aro = new Aco();

$aro = new Aco();

//Create some access request objects:
$aro->create(1, null, 'Admins');
$aro->create(2, 'Admins', 'Contributors');
$aro->create(3, 'Contributors', 'Editors');
$aro->create(4, 'Editors', 'Managers');

$aro->create(5, null, 'Users');
$aro->create(6, 'Users', 'Visitors');
$aro->create(7, 'Visitors', 'Level1');
$aro->create(7, 'Level1', 'Level2');
$aro->create(7, 'Level2', 'Level3');

would I be right in thinking I don't need the 'Admin Roles' setup in
the ACO's, instead they are groups in the AROs?

still confused, but getting there!

jb

--


jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: DBACL aco aro group design

2006-04-06 Thread Jon Bennett

On 4/6/06, Jon Bennett <[EMAIL PROTECTED]> wrote:
> hi,
>
> I'm hoping someone with more experience will be able to point me in
> the right direction with how to layout my ACO/ARO groups etc.
>
> What I'm trying to do is use ACL to both control access to different
> sections of my admin system (news, products etc) and give a varying
> access level to a user nice they have access (view, edit, delete etc).
>
> I also need to be able to assign a access_level to front end users, so
> certain pieces of content can be restricted to, eg, registered users
> only, or users that pay a subscription.
>
> So far I have the following:
>
> ADMIN_APPS
>
> Users
> News
> Pages
> Store
> Orders
>
> ADMIN_USER_LEVELS
>
> contributor (view/create)
> editor (view/create/edit)
> manager (view/create/edit/delete)
>
> FRONT_END_CONTENT_ACCESS_LEVELS
>
> bronze (can see all standard pages plus pages assigned bronze access level)
> silver (can see all standard pages plus pages assigned bronze & silver
> access level)
> gold (can see all standard pages plus pages assigned bronze & silver &
> gold access level)
>

I've been doing some rtfm'ing and haev come up with the following,
does it look ok?

$aco = new Aco();

//Create some access control objects:
$aco->create(1, null, 'Admin Apps');
$aco->create(2, 'Admin Apps', 'Users');
$aco->create(3, 'Admin Apps', 'News');
$aco->create(4, 'Admin Apps', 'Pages');
$aco->create(5, 'Admin Apps', 'Store');
$aco->create(6, 'Admin Apps', 'Orders');

//Create some access control objects:
$aco->create(7, null, 'Admin Roles');
$aco->create(8, 'Admin Roles', 'contributor');
$aco->create(9, 'contributor', 'editor');
$aco->create(10, 'editor', 'manager');

//Create some access control objects:
$aco->create(11, null, 'Access Levels');
$aco->create(12, 'Access Levels', 'basic');
$aco->create(13, 'basic', 'bronze');
$aco->create(14, 'bronze', 'silver');
$aco->create(15, 'silver', 'gold');

jb


--


jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



DBACL aco aro group design

2006-04-06 Thread Jon Bennett

hi,

I'm hoping someone with more experience will be able to point me in
the right direction with how to layout my ACO/ARO groups etc.

What I'm trying to do is use ACL to both control access to different
sections of my admin system (news, products etc) and give a varying
access level to a user nice they have access (view, edit, delete etc).

I also need to be able to assign a access_level to front end users, so
certain pieces of content can be restricted to, eg, registered users
only, or users that pay a subscription.

So far I have the following:

ADMIN_APPS

Users
News
Pages
Store
Orders

ADMIN_USER_LEVELS

contributor (view/create)
editor (view/create/edit)
manager (view/create/edit/delete)

FRONT_END_CONTENT_ACCESS_LEVELS

bronze (can see all standard pages plus pages assigned bronze access level)
silver (can see all standard pages plus pages assigned bronze & silver
access level)
gold (can see all standard pages plus pages assigned bronze & silver &
gold access level)

but, to be honest, after that I'm not sure where to go!!

huge amount of thanks,

Jon
--


jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---