isRequestGet()) { return parent::create(); } else { throw new \common_exception_Unauthorized(); } } /** * Edition is disabled now * @throws \common_exception_Unauthorized */ public function edit() { throw new \common_exception_Unauthorized(); } /** * Return the form object to manage user edition or creation * * @param $instance * @return taoItems_actions_form_RestItemForm */ protected function getForm($instance) { return $this->propagate(new \taoItems_actions_form_RestItemForm($instance)); } }