FIX_ACL&VISIT_OFFBOARD
This commit is contained in:
parent
a9fe8303c0
commit
af4d23a377
@ -17,6 +17,10 @@ class Acl
|
|||||||
'#^/swagger#' => ['roles' => [ADMIN_ROLE_ID]],
|
'#^/swagger#' => ['roles' => [ADMIN_ROLE_ID]],
|
||||||
'#^/fedeploy#' => ['roles' => [ADMIN_ROLE_ID]],
|
'#^/fedeploy#' => ['roles' => [ADMIN_ROLE_ID]],
|
||||||
'#^/visitOffBoardCheck#' => ['roles' => [ADMIN_ROLE_ID]],
|
'#^/visitOffBoardCheck#' => ['roles' => [ADMIN_ROLE_ID]],
|
||||||
|
'#^/logs#' => ['roles' => [ADMIN_ROLE_ID]],
|
||||||
|
'#^/util/log_list#' => ['roles' => [ADMIN_ROLE_ID]],
|
||||||
|
'#^/util/view_log#' => ['roles' => [ADMIN_ROLE_ID]],
|
||||||
|
'#^/util/download_log#' => ['roles' => [ADMIN_ROLE_ID]],
|
||||||
|
|
||||||
// ===================== PUBLIC DOWNLOADS / FORMS =====================
|
// ===================== PUBLIC DOWNLOADS / FORMS =====================
|
||||||
'#^/download-#' => ['public' => true],
|
'#^/download-#' => ['public' => true],
|
||||||
|
|||||||
@ -4473,9 +4473,9 @@ class EmployeeController extends AdminController
|
|||||||
public function visitOffBoard(array $params)
|
public function visitOffBoard(array $params)
|
||||||
{
|
{
|
||||||
// 1. Load credentials from .env
|
// 1. Load credentials from .env
|
||||||
$apiUrl = env('WELLNESS_ONBOARD_ENDPOINT_URL');
|
$apiUrl = env('WELLNESS_ONBOARD_ENDPOINT_URL').'delete-policy-with-dependents';
|
||||||
$apiToken = env('WELLNESS_ONBOARD_AUTHORIZATION');
|
$apiToken = env('WELLNESS_ONBOARD_AUTHORIZATION');
|
||||||
|
// echo $apiUrl;die();
|
||||||
// 2. Initialize the CI4 CURL service
|
// 2. Initialize the CI4 CURL service
|
||||||
$client = \Config\Services::curlrequest([
|
$client = \Config\Services::curlrequest([
|
||||||
'base_uri' => $apiUrl,
|
'base_uri' => $apiUrl,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user