예제 #1
0
 public function moveupAction()
 {
     // acl checks
     if (!Knowledgeroot_Acl::iAmAllowed('content_' . $this->_getParam('id'), 'edit')) {
         $this->_redirect('');
     }
     // get content and move up
     $content = new Knowledgeroot_Content($this->_getParam('id'));
     $content->moveUp();
     $parent = $content->getParent();
     //$content->save();
     // redirect to page
     $this->_redirect('page/' . $parent);
 }