public function deletepAction() { $this->setInvokeArg('noViewRenderer', true); if (!WM_Users::allow('delete', $this->getRequest()->getController())) { echo $this->translate('You do not have permission to this action'); } else { Model_Pins::deleteRP($this->getRequest()->getPost('id')); } }