Powered by Invision Power Board



  Reply to this topicStart new topicStart Poll

> How can I tie a user to another model with ACL??, ACL ARO GUru needed!! =)
MetZ
  Posted: Oct 4 2011, 10:06 AM
Quote Post


Member
**

Group: Members
Posts: 10
Member No.: 2875
Joined: 11-June 11



Hi..

First off, I have never fiddled around with ACL before.. But I decided to give it a go on my new app.

I have been following the guide at:
http://book.cakephp.org/view/1543/Simple-A...led-Application

And have it all working just fine on my app. All models/controllers/views are almost exactly like the ones in the book for users and groups.

Now the reason I wanted a more "complex" user permission system is the main function of the app.

I am looking to tell ACL that that particular user belongs to another model, so that when logged in, only parts of the app, that are assosiated with that model, is accessible.

Example:
i have 3 groups: admin, team owner, user

Model - Team
(Register, Edit, Del,)

User belongsto -> Group + Team

Now when new user is created, I select Group (team owner/user) + Team (team1) that user belongs to.

This user access will be restriced to group + team1
example: User will have no access to team2, team3 and so on, other than the public views.

Anyone know how I can get this access going ??

Thanks for any help!!

Regards!
-Tom






PMEmail PosterUsers Website
Top
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll

 

Disclaimer:
This forum is in no way affiliated with the Cake Software Foundation
The CakePHP name and icon is a trademark of the Cake Software Foundation


Lo-Fi Version