Taking that you are new to CakePHP this might be a bit too hard to
digest, but I recommend at least reading this article:
http://jmcneese.wordpress.com/2009/04/19/rmac-ftw-part-1/
http://jmcneese.wordpress.com/2010/01/28/rmac-is-dead-long-live-rmac/
This is implementing UNIX-style permissions for Model access, which is
basically what you want.
Kind regards
Thomas
Am 21.09.2011 11:28, schrieb elogic:
Is there any quick / better way to use Auth to limit the results based
on the users login details or is it just a matter of using if/else
statments to get what you want.
For example, I have a list of products which all have a group id
assigned to them. Each user also has a group id. When the user is
logged in they are to only show the products that matches their group
id.
I'm only new to cakephp and still do not know all the tricks or short
cuts for things like this.
Thankyou
--
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