Organisation registration process implemented with configurable approval workflow
This commit is contained in:
@@ -830,11 +830,13 @@ class OrganisationController extends SimpleController
|
||||
$editButtons['hidden'][] = 'delete';
|
||||
}
|
||||
|
||||
$canAccessOrganisations = $authorizer->checkAccess($currentUser, 'uri_organisations');
|
||||
|
||||
return $this->ci->view->render($response, 'pages/organisation.html.twig', [
|
||||
'organisation' => $organisation,
|
||||
'fields' => $fields,
|
||||
'tools' => $editButtons,
|
||||
'delete_redirect' => $this->ci->router->pathFor('uri_organisations'),
|
||||
'delete_redirect' => ($canAccessOrganisations ? $this->ci->router->pathFor('uri_organisations') : $this->ci->router->pathFor('dashboard')),
|
||||
'leave_redirect' => $this->ci->router->pathFor('dashboard'),
|
||||
]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user