First read the manual (it does a good job explaining the concepts), then:

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

It works wonderful.

On Tue, Mar 4, 2008 at 1:36 PM, jelmer <[EMAIL PROTECTED]> wrote:
>
>  Interesting, I was about to post the same questions, can anyone help
>  us out??
>
>  3) ACL can be used to manage usergroups and actions and permissions
>  related to that, once you've read the manual on ACL you'll get the
>  idea. I think there are a few tutorials on combining the Auth
>  component and ACL as well, try google.
>
>  here's a link to the manual about ACL: http://manual.cakephp.org/chapter/acl
>
>  thanks for asking the right questions ;)
>
>
>  On Feb 4, 12:43 pm, Tim W <[EMAIL PROTECTED]> wrote:
>  > Hi all,
>  >
>  > Thanks mostly to the tutorial linked below I have basic auth working
>  > in my project. I can create a user in the database (that took a while
>  > to figure out), have users view public content without logging in, and
>  > make users log in before they go to a page that's for registered only.
>  > So far I haven't figured out quite how it works, but it seems to. What
>  > i'm trying to do is show the "edit" link on a webpage only to
>  > administrators.
>  >
>  > I have a few questions, the first being by far the most important:
>  > 1) How do I get the username and group (or just the user object) of
>  > the user currently logged in? I've looked at everything in my debugger
>  > and can't spot the information anywhere.
>  > 2) Is there an easy way to get the user role or group from the view?
>  > ie I only want to show the "go to administration" link if the user's
>  > an admin.
>  > 3) How does ACL relate to what i've done?
>  >
>  > Once I get a basic auth system up and running I hope to put together a
>  > sample project so people can download it, throw it into their project,
>  > and have it work complete with login, registration page, user models,
>  > etc.
>  >
>  > The most useful tutorial i've 
> found:http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/
>  > adnhttp://www.webdevelopment2.com/cakephp-auth-component-tutorial-2/
>  >
>  > Other i've looked at are 
> belowhttp://www.littlehart.net/atthekeyboard/2007/09/11/a-hopefully-useful...http://www.littlehart.net/atthekeyboard/2007/11/20/follow-up-to-a-hop...http://lemoncake.wordpress.com/2007/07/15/using-aclbehavior-in-cakeph...http://lemoncake.wordpress.com/2007/07/19/using-authcomponent-and-acl...
>
>
> >
>  > Thanks
>  >
>  > Tim
>
>  >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to