diff --git a/application/controllers/RoleController.php b/application/controllers/RoleController.php index 809bc59a3..a4c83b113 100644 --- a/application/controllers/RoleController.php +++ b/application/controllers/RoleController.php @@ -114,13 +114,7 @@ class RoleController extends AuthBackendController public function removeAction() { $this->assertPermission('config/authentication/roles/remove'); - $name = $this->_request->getParam('role'); - if (empty($name)) { - throw new Zend_Controller_Action_Exception( - sprintf($this->translate('Required parameter \'%s\' missing'), 'role'), - 400 - ); - } + $name = $this->params->getRequired('role'); $role = new RoleForm(); try { $role