Security: Fix redicrect URL

This commit is contained in:
Eric Lippmann 2014-11-19 16:33:18 +01:00
parent 0862602fcf
commit 92b2c5061d
1 changed files with 3 additions and 3 deletions

View File

@ -56,7 +56,7 @@ class PermissionsController extends ActionController
$role $role
->setSubmitLabel($this->translate('Create Role')) ->setSubmitLabel($this->translate('Create Role'))
->setIniConfig(Config::app('roles', true)) ->setIniConfig(Config::app('roles', true))
->setRedirectUrl('security') ->setRedirectUrl('permissions')
->handleRequest(); ->handleRequest();
$this->view->form = $role; $this->view->form = $role;
} }
@ -99,7 +99,7 @@ class PermissionsController extends ActionController
} }
return false; return false;
}) })
->setRedirectUrl('security') ->setRedirectUrl('permissions')
->handleRequest(); ->handleRequest();
$this->view->name = $name; $this->view->name = $name;
$this->view->form = $role; $this->view->form = $role;
@ -142,7 +142,7 @@ class PermissionsController extends ActionController
)); ));
$confirmation $confirmation
->setSubmitLabel($this->translate('Remove Role')) ->setSubmitLabel($this->translate('Remove Role'))
->setRedirectUrl('security') ->setRedirectUrl('permissions')
->handleRequest(); ->handleRequest();
$this->view->name = $name; $this->view->name = $name;
$this->view->form = $confirmation; $this->view->form = $confirmation;