Línea 2... |
Línea 2... |
2 |
$acl = $this->viewModel()->getRoot()->getVariable('acl');
|
2 |
$acl = $this->viewModel()->getRoot()->getVariable('acl');
|
3 |
$currentUser = $this->currentUserHelper();
|
3 |
$currentUser = $this->currentUserHelper();
|
4 |
$roleName = $currentUser->getUserTypeId();
|
4 |
$roleName = $currentUser->getUserTypeId();
|
Línea 5... |
Línea 5... |
5 |
|
5 |
|
6 |
$routeDatatable = $this->url('recruitment-and-selection/candidates');
|
6 |
$routeDatatable = $this->url('recruitment-and-selection/candidates');
|
7 |
$routeEmail = $this->url('recruitment-and-selection/candidates/user-by-email', ['vacancy_uuid' => 'UUID_PLACEHOLDER']);
|
7 |
$routeEmail = $this->url('recruitment-and-selection/user-by-email', ['vacancy_uuid' => 'UUID_PLACEHOLDER']);
|
Línea 8... |
Línea 8... |
8 |
$routeAdd = $this->url('recruitment-and-selection/candidates/add', ['vacancy_uuid' => 'UUID_PLACEHOLDER']);
|
8 |
$routeAdd = $this->url('recruitment-and-selection/candidates/add', ['vacancy_uuid' => 'UUID_PLACEHOLDER']);
|
9 |
|
9 |
|
10 |
$allowAdd = $acl->isAllowed($roleName, 'recruitment-and-selection/candidates/add') ? 1 : 0;
|
10 |
$allowAdd = $acl->isAllowed($roleName, 'recruitment-and-selection/candidates/add') ? 1 : 0;
|
11 |
$allowDelete = $acl->isAllowed($roleName, 'recruitment-and-selection/candidates/delete') ? 1 : 0;
|
11 |
$allowDelete = $acl->isAllowed($roleName, 'recruitment-and-selection/candidates/delete') ? 1 : 0;
|
Línea 12... |
Línea 12... |
12 |
$allowEdit = $acl->isAllowed($roleName, 'recruitment-and-selection/candidates/edit') ? 1 : 0;
|
12 |
$allowEdit = $acl->isAllowed($roleName, 'recruitment-and-selection/candidates/edit') ? 1 : 0;
|
13 |
$allowEmail = $acl->isAllowed($roleName, 'recruitment-and-selection/candidates/user-by-email') ? 1 : 0;
|
13 |
$allowEmail = $acl->isAllowed($roleName, 'recruitment-and-selection/user-by-email') ? 1 : 0;
|