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_Events::changeStatus($this->getRequest()->getPost('id'))) { echo 'ok'; } else { echo 'error'; } } }