public function postToListAccess($r) { $list = new Dase_DBO_List($this->db); $list->uniq_id = $r->get('id'); if (!$list->findOne()) { $r->renderError(404); } if ('public' == $r->get('access')) { $list->is_public = 1; $list->update(); } if ('private' == $r->get('access')) { $list->is_public = 0; $list->update(); } $r->renderRedirect($list->uniq_id); }