I have 2 groups that need to have permission from the other user to allow
access to view a profile. (Think of Hi5.com or facebook similar)
Example: 
USER A is in GROUP 1 (user_id 50) // TEACHER PROFILE
USER B is in GROUP 2 (user_id 91) // STUDENT PROFILE
 
As it is now GROUPS are divided using ACL so GROUP 1 has no access to GROUP
2 except for VIEW action, which I want to restrict a TEACHER to only  VIEW a
STUDENTS profile who has applied for a TEACHERS class. 
So basically the TEACHER does not have access to all STUDENTS VIEW just the
ones who apply for the class of that TEACHER.
 
I just figured a table where beforeFilter I could check to see if the
teacher id and student id exist in the table then there is a connection and
allow view, if not deny access. But the access is very limited (time)
because once the class is no longer offered (deleted) by the teacher the
access to the student profiles is also deleted.
 
What would be the best way to set this up? Table structure?
 
Thanks
 
Dave 

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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