From c1caba1e7c1e2a4913506dcd32ae287472d13cce Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 4 Jun 2021 10:33:50 -0600 Subject: [PATCH] Add new field user_uuid and permission destination_user_uuid --- app/destinations/app_config.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/destinations/app_config.php b/app/destinations/app_config.php index 978f211848..4df7bf6a1e 100644 --- a/app/destinations/app_config.php +++ b/app/destinations/app_config.php @@ -130,6 +130,9 @@ $apps[$x]['permissions'][$y]['name'] = "destination_fax"; $apps[$x]['permissions'][$y]['groups'][] = "superadmin"; $y++; + $apps[$x]['permissions'][$y]['name'] = "destination_user_uuid"; + $apps[$x]['permissions'][$y]['groups'][] = "superadmin"; + $y++; $apps[$x]['permissions'][$y]['name'] = "destination_emergency"; $apps[$x]['permissions'][$y]['groups'][] = "superadmin"; $y++; @@ -225,6 +228,14 @@ $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "fax_uuid"; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = "user_uuid"; + $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid"; + $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text"; + $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)"; + $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign"; + $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_users"; + $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "user_uuid"; + $z++; $apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "destination_type"; $apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "destination_name"; $apps[$x]['db'][$y]['fields'][$z]['type'] = "text";