/** * Change a sim restriction */ public function restrictionAction() { $data = $this->_checkAndGetListData('change_restrictions', true); if (!$data['restriction']) { throw new InvalidArgumentException('Bad Request. Malformed Json. parameter {restriction} is required'); } $restriction = new \Application\Model\RestrictionModel($data['restriction']); $watcher = $this->_simSrv->changeRestriction($data['list'], $restriction); $this->_helper->filterNotAllowedFields('read_field', $watcher); // Respond with the transaction ID $this->view->assign('watcher', $watcher); }