diff --git a/src/Controller/OrganisationController.php b/src/Controller/OrganisationController.php index c489a24..f77f648 100644 --- a/src/Controller/OrganisationController.php +++ b/src/Controller/OrganisationController.php @@ -1060,7 +1060,7 @@ class OrganisationController extends SimpleController 'fields' => $fields, 'tools' => $editButtons, 'delete_redirect' => ($canAccessOrganisations ? $this->ci->router->pathFor('uri_organisations') : $this->ci->router->pathFor('dashboard')), - 'leave_redirect' => $this->ci->router->pathFor('dashboard'), + 'leave_redirect' => ($canAccessOrganisations ? $this->ci->router->pathFor('uri_organisations') : $this->ci->router->pathFor('dashboard')), ]); }