Re: ACL explained for 1.2?

2008-02-25 Thread leo

Thanks. The lemoncake was one of the links I found wanting.

I'll work through your tips when I move back onto this portion of the
development.

Thanks again.

On Feb 21, 6:00 pm, aranworld [EMAIL PROTECTED] wrote:
 For starters, you need to get familiar with the Cake console ACL
 manager.  That Lemoncake tutorial is good, but some of the stuff is a
 little out-of-date.

 There is NOT an all-inclusive page that includes everything.

 Here are some tips I can put in, having gone through this learning
 curve in January.

 The key for me was to install the ACL database tables and then start
 playing with the ACL Console manager and just looking at what happened
 in the database tables as I made modifications to the setup.

 Also, realize that if you are running Auth in 'actions' mode, the
 _create, _edit, _update, _delete columns in the acos_aros table need
 to always be set to 1 (happens automatically), because the permissions
 are going to be based on matching aliases and not based on crud
 mapping.  If you use Auth in 'crud' mode, then those columns will be
 used and aco aliases will be less important --- I found 'actions' mode
 to be more flexible, and so am using that.  Whenever I do a grant
 command, I have to add the * at the end to ensure that all four
 columns are set to 1.

 Be aware that if you are using the AclBehavior to automate things, you
 are going to have to create a custom function in your model to create
 the alias field in the aco or aro table.  The AclBehavior does NOT
 touch help with the alias field.  However, the alias field is very
 important, because it is what the Auth and Acl components use to
 determine permission.

 Also, in the time since some of the tutorials were written, there have
 been improvements made in the managing of elements in the tree.  You
 can now more easily change the parent of an item and have it
 automatically moved to the correct position on the tree.

 As it is written, you cannot use an Aco ( in 'actions' mode ) with the
 alias Users/edit/53 in which 53 is the user's id, because Auth does
 not recognize the ID in it's action function.  You will have to create
 a modified Auth::action() function, if you would like to use aliass
 such as Users/edit/53.

 With time you will start to get the hang of it, but be assured that it
 actually does work as advertised.

 On Feb 21, 5:54 am, Dardo Sordi Bogado [EMAIL PROTECTED] wrote:

  This work great:

 http://lemoncake.wordpress.com/2007/07/19/using-authcomponent-and-acl...

  But, before make sure you have Auth working without ACL and are
  comfortable with it.

  On Thu, Feb 21, 2008 at 11:00 AM, leo [EMAIL PROTECTED] wrote:

Can anybody supply a URL to a tutorial for ACL in 1.2 that actually
includes everything? I have looked at a few that seem to leave vital
bits out.

It's a difficult topic to get your head round.

Thanks
--~--~-~--~~~---~--~~
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 explained for 1.2?

2008-02-21 Thread leo

Can anybody supply a URL to a tutorial for ACL in 1.2 that actually
includes everything? I have looked at a few that seem to leave vital
bits out.

It's a difficult topic to get your head round.

Thanks
--~--~-~--~~~---~--~~
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 explained for 1.2?

2008-02-21 Thread Dardo Sordi Bogado

This work great:

http://lemoncake.wordpress.com/2007/07/19/using-authcomponent-and-acl-in-cakephp-12/

But, before make sure you have Auth working without ACL and are
comfortable with it.

On Thu, Feb 21, 2008 at 11:00 AM, leo [EMAIL PROTECTED] wrote:

  Can anybody supply a URL to a tutorial for ACL in 1.2 that actually
  includes everything? I have looked at a few that seem to leave vital
  bits out.

  It's a difficult topic to get your head round.

  Thanks
  


--~--~-~--~~~---~--~~
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 explained for 1.2?

2008-02-21 Thread aranworld

For starters, you need to get familiar with the Cake console ACL
manager.  That Lemoncake tutorial is good, but some of the stuff is a
little out-of-date.

There is NOT an all-inclusive page that includes everything.

Here are some tips I can put in, having gone through this learning
curve in January.

The key for me was to install the ACL database tables and then start
playing with the ACL Console manager and just looking at what happened
in the database tables as I made modifications to the setup.

Also, realize that if you are running Auth in 'actions' mode, the
_create, _edit, _update, _delete columns in the acos_aros table need
to always be set to 1 (happens automatically), because the permissions
are going to be based on matching aliases and not based on crud
mapping.  If you use Auth in 'crud' mode, then those columns will be
used and aco aliases will be less important --- I found 'actions' mode
to be more flexible, and so am using that.  Whenever I do a grant
command, I have to add the * at the end to ensure that all four
columns are set to 1.

Be aware that if you are using the AclBehavior to automate things, you
are going to have to create a custom function in your model to create
the alias field in the aco or aro table.  The AclBehavior does NOT
touch help with the alias field.  However, the alias field is very
important, because it is what the Auth and Acl components use to
determine permission.

Also, in the time since some of the tutorials were written, there have
been improvements made in the managing of elements in the tree.  You
can now more easily change the parent of an item and have it
automatically moved to the correct position on the tree.

As it is written, you cannot use an Aco ( in 'actions' mode ) with the
alias Users/edit/53 in which 53 is the user's id, because Auth does
not recognize the ID in it's action function.  You will have to create
a modified Auth::action() function, if you would like to use aliass
such as Users/edit/53.

With time you will start to get the hang of it, but be assured that it
actually does work as advertised.



On Feb 21, 5:54 am, Dardo Sordi Bogado [EMAIL PROTECTED] wrote:
 This work great:

 http://lemoncake.wordpress.com/2007/07/19/using-authcomponent-and-acl...

 But, before make sure you have Auth working without ACL and are
 comfortable with it.

 On Thu, Feb 21, 2008 at 11:00 AM, leo [EMAIL PROTECTED] wrote:

   Can anybody supply a URL to a tutorial for ACL in 1.2 that actually
   includes everything? I have looked at a few that seem to leave vital
   bits out.

   It's a difficult topic to get your head round.

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