Change leave redirect to organisations list page if access is granted, dashboard if otherwise

This commit is contained in:
2022-02-15 17:31:29 +00:00
parent b042402681
commit 64971d6262

View File

@@ -1060,7 +1060,7 @@ class OrganisationController extends SimpleController
'fields' => $fields, 'fields' => $fields,
'tools' => $editButtons, 'tools' => $editButtons,
'delete_redirect' => ($canAccessOrganisations ? $this->ci->router->pathFor('uri_organisations') : $this->ci->router->pathFor('dashboard')), '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')),
]); ]);
} }