Ejemplo n.º 1
0
 /**
  * Present a form for editing an existing comment.
  *  @see REST_Controller::form_edit($resource)
  */
 public function _form_edit($comment)
 {
     if (!user::active()->admin) {
         access::forbidden();
     }
     print comment::get_edit_form($comment);
 }
Ejemplo n.º 2
0
 /**
  * Present a form for editing an existing comment.
  *  @see REST_Controller::form_edit($resource)
  */
 public function _form_edit($comment)
 {
     print comment::get_edit_form($comment);
 }