public function removeUserData($user) { global $registry; if (!$registry->isAdmin() && $user != $registry->getAuth()) { throw new Ingo_Exception(_("Permission Denied")); } $this->_removeUserData($user); $this->_rules = array(); }