Re: Group , Permission to edit table

2007-03-27 Thread cc96ai
i still can't find the way to get the ACO corresponding ARO any help ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe

Re: Group , Permission to edit table

2007-03-24 Thread cc96ai
$tmp = $this->Acl->getAco('users.7'); users.7 is Aro ID I try to use getAco, but it didnt get what I want any idea how to getAco object ? aco Object ( [useDbConfig] => default [cacheQueries] => [_log] => [useTable] => [displayField] => id [id] => [data] => Array

Re: Group , Permission to edit table

2007-03-23 Thread cc96ai
Finally, i go through all the basic ACL setup, I try to use your provided code. it seems , i have to pass $actionAcoList from my controller $actionAcoList is array of the Aco list, does Aco provide that method ? (I can't find it) or I have to open db table and loop all result into array ? 2nd m

Re: Group , Permission to edit table

2007-03-20 Thread cc96ai
Thanks pointing me to the direction, I read ACL , and I understand that ACL can control the action, but how about group can edit certain fields e.g. product table. id, Name, QTY, SalePrice -Admin Can edit all the fields above -Saleman, only can edit on "SalePrice" field ONLY it means, admin hav

Re: Group , Permission to edit table

2007-03-20 Thread Langdon Stevenson
Hi cc96ai > I read ACL , and I understand that ACL can control the action, > but how about group can edit certain fields > e.g. > product table. > id, Name, QTY, SalePrice > > -Admin Can edit all the fields above > -Saleman, only can edit on "SalePrice" field ONLY > > it means, admin have FULL

Re: Group , Permission to edit table

2007-03-19 Thread Langdon Stevenson
Hi cc96ai > in this scenario, > should I create "action" for all of them in product controller, > - user_view > - salesman_view > - salesman_edit > - admin_view > - admin_edit > - admin_delete > - admin_add > > and also create 7 View page (thml) ? > > > OR there has better solution to do this

Group , Permission to edit table

2007-03-19 Thread cc96ai
we have 3 different groups - User - Salesman - Admin In product table, - User can view the product info - Salesman can update/edit some (not all) fields - Admin can add/delete/edit in this scenario, should I create "action" for all of them in product controller, - user_view - salesman_view - sa