public function changeStatusMultiAction() { $this->setInvokeArg('noViewRenderer', true); $action_check = $this->getRequest()->getPost('action_check'); if ($action_check && is_array($action_check)) { foreach ($action_check as $id) { Model_Categories::changeStatus($id); } } }
public function changeStatusMultiAction() { $this->setInvokeArg('noViewRenderer', true); if (!WM_Users::allow('edit', $this->getRequest()->getController())) { echo $this->translate('You do not have permission to this action'); } else { $action_check = $this->getRequest()->getPost('action_check'); if ($action_check && is_array($action_check)) { foreach ($action_check as $record_id) { Model_Categories::changeStatus($record_id); } } } }