Thanks, I agree. Simple is better at the moment. it seems to cover
everything I want.
Thanks for the replies.
On Sep 22, 5:41 pm, WebbedIT wrote:
> I don't see why this has to get any more complex than what Teddy
> suggested? I have always stayed well clear of ACL as it was too
> complex for me
I don't see why this has to get any more complex than what Teddy
suggested? I have always stayed well clear of ACL as it was too
complex for me to implement when first learning CakePHP and I've never
needed more than standard Auth and User Groups in the many CakePHP
sites I have developed since.
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 f
On Sep 21, 2:28 pm, elogic wrote:
> 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 the
I guess you can do something like this:
$group_id=$this->Auth->user('group_id');
$products=$this->Product->find('all',array('conditions'=>array('Product.group_id'=>$group_id)));
Is this what you're looking for ?
Teddy
On Wed, Sep 21, 2011 at 12:28 PM, elogic wrote:
> Is there any quick / bet
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