Write wrappers for the find() function in your Library model.

function adminFind() {
return $this->find();
}

fuction userFind() {
$this->deleteStuff();
return $this->find();
}


On Jan 25, 9:57 am, powtac <[EMAIL PROTECTED]> wrote:
> In the beforeFind() I delete some data of the current user which
> should only be in the database for 60 minutes.
> But when I want to take a look on the data as admin I dont want to
> delete anything...

--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to