From 41c5fa3a3f6523c677247dc4f3c1a230dda20d71 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sat, 16 Jul 2022 23:29:04 -0600 Subject: [PATCH] Add a field and permission called destination_conditions. --- app/destinations/app_config.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/app/destinations/app_config.php b/app/destinations/app_config.php index a15287e67a..f80aa767bf 100644 --- a/app/destinations/app_config.php +++ b/app/destinations/app_config.php @@ -140,6 +140,9 @@ $apps[$x]['permissions'][$y]['name'] = "destination_fax"; $apps[$x]['permissions'][$y]['groups'][] = "superadmin"; $y++; + $apps[$x]['permissions'][$y]['name'] = "destination_conditions"; + $apps[$x]['permissions'][$y]['groups'][] = "superadmin"; + $y++; $apps[$x]['permissions'][$y]['name'] = "destination_user_uuid"; $apps[$x]['permissions'][$y]['groups'][] = "superadmin"; $y++; @@ -334,11 +337,17 @@ $apps[$x]['db'][$y]['fields'][$z]['type'] = "numeric"; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Number is used for text messages."; $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = "destination_conditions"; + $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "json"; + $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text"; + $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "text"; + $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Array of Conditions."; + $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = "destination_actions"; $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "json"; $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text"; $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "text"; - $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Array of destination Actions."; + $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Array of Actions."; $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = "destination_app"; $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";