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,
|
'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')),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user