diff --git a/src/app/contact/controllers/ContactController.php b/src/app/contact/controllers/ContactController.php index 16060ba9902d8402e8dffa7c646611ff26000e6a..6a2fbc56b172a64fa5f78ef247d0e8bb7a541dea 100755 --- a/src/app/contact/controllers/ContactController.php +++ b/src/app/contact/controllers/ContactController.php @@ -419,9 +419,9 @@ class ContactController public function getContactsParameters(Request $request, Response $response) { - if (!PrivilegeController::hasPrivilege(['privilegeId' => 'admin_contacts', 'userId' => $GLOBALS['id']])) { + /*if (!PrivilegeController::hasPrivilege(['privilegeId' => 'admin_contacts', 'userId' => $GLOBALS['id']])) { return $response->withStatus(403)->withJson(['errors' => 'Service forbidden']); - } + }*/ $contactsFilling = ContactFillingModel::get(); $contactParameters = ContactParameterModel::get([ diff --git a/src/frontend/app/contact/list/contacts-list.component.ts b/src/frontend/app/contact/list/contacts-list.component.ts index 382629ae212969a0cd67008faa78ec492e151f6f..c45146d13ae2046bfc4927005719a66cd27303bd 100644 --- a/src/frontend/app/contact/list/contacts-list.component.ts +++ b/src/frontend/app/contact/list/contacts-list.component.ts @@ -169,7 +169,16 @@ export class ContactsListComponent implements OnInit { } empty(value: any) { - if (value !== null && value !== '' && value !== undefined) { + if (value === null || value === undefined) { + return true; + + } else if (Array.isArray(value)) { + if (value.length > 0) { + return false; + } else { + return true; + } + } else if (String(value) !== '') { return false; } else { return true;