ACL
aco = access control object (something in your application)
aro = access request object (something requesting access)

please explain me if i have 3k files in my db (witch
id,user_id,filename) how i can write ACL method for eg. edit and
premmision to edit for owner and admin  ?

======files_controler.php=====
 function edit($file_id=null){

// WHAT ACL METHOD i must to use for allow permision to edit owner and
admin  ??

                $this->set('file_id',$file_id);

                        if(empty($this->data)){
                                $this->render();
                        }else{

                                if ($this->Comment->save($this->data)){
                                         ...
                               }
}


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

Reply via email to