Change leave redirect to organisations list page if access is granted, dashboard if otherwise
This commit is contained in:
@@ -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')),
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user