On 26/07/12 14:56, bigjimmi wrote:
Hi. Within my cake app admins are able to add records (users manuals). I want to give only certain users access to certain manuals. I'm using the ACL and Auth component to handle logins and access to CRUD functions.

How can I control access to these certain records? When an admin creates a user, I want them to tick check boxes relating to what manuals a user can access and of course be able to go back and change this.

Does anyone have any idea how I can accomplish this or have come across any tutorials with similar functionality?

Thanks in advance
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at http://groups.google.com/group/cake-php

Have a read of Mark Story's excellent ACL/Auth tutorial on his blog : http://mark-story.com/posts/view/auth-and-acl-an-end-to-end-tutorial-pt-1

I suspect you'll have to write the check box functionality yourself as it is specific to your application and your database but this should at least give you the knowledge as to how to go about doing it. Mark also has a very nice menu component that you could use after permissions have been assigned to allow access to your manuals... http://mark-story.com/posts/view/acl-menu-component




--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to