Use UrlParams::getRequired() in RoleController::removeAction()
This commit is contained in:
parent
853d4fd534
commit
fd8b5ec510
|
@ -114,13 +114,7 @@ class RoleController extends AuthBackendController
|
||||||
public function removeAction()
|
public function removeAction()
|
||||||
{
|
{
|
||||||
$this->assertPermission('config/authentication/roles/remove');
|
$this->assertPermission('config/authentication/roles/remove');
|
||||||
$name = $this->_request->getParam('role');
|
$name = $this->params->getRequired('role');
|
||||||
if (empty($name)) {
|
|
||||||
throw new Zend_Controller_Action_Exception(
|
|
||||||
sprintf($this->translate('Required parameter \'%s\' missing'), 'role'),
|
|
||||||
400
|
|
||||||
);
|
|
||||||
}
|
|
||||||
$role = new RoleForm();
|
$role = new RoleForm();
|
||||||
try {
|
try {
|
||||||
$role
|
$role
|
||||||
|
|
Loading…
Reference in New Issue