Beispiel #1
0
 public function changeStatusAction()
 {
     $this->noViewRenderer(true);
     if (!WM_Users::allow('edit', $this->getRequest()->getController())) {
         echo $this->translate('You do not have permission to this action');
     } else {
         if (Model_Pins::changeStatus($this->getRequest()->getPost('id'))) {
             echo 'ok';
         } else {
             echo 'error';
         }
     }
 }