From a1baa68230e9b8a527cf507b148a789b8669710d Mon Sep 17 00:00:00 2001 From: agree <37550360+greenbea@users.noreply.github.com> Date: Mon, 18 Jan 2021 17:08:12 -0500 Subject: [PATCH 1/2] Destinations add accountcode permission --- app/destinations/destination_edit.php | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/app/destinations/destination_edit.php b/app/destinations/destination_edit.php index 09c937b328..5008789fba 100644 --- a/app/destinations/destination_edit.php +++ b/app/destinations/destination_edit.php @@ -1226,15 +1226,17 @@ echo "\n"; } - echo "\n"; - echo "\n"; - echo " ".$text['label-account_code']."\n"; - echo "\n"; - echo "\n"; - echo " \n"; - echo "
\n"; - echo $text['description-account_code']."\n"; - echo "\n"; + if (permission_exists("destination_accountcode")) { + echo "\n"; + echo "\n"; + echo " ".$text['label-account_code']."\n"; + echo "\n"; + echo "\n"; + echo " \n"; + echo "
\n"; + echo $text['description-account_code']."\n"; + echo "\n"; + } echo "\n"; echo "\n"; From 71a468113a856df88fc087609aa56276e738ebb2 Mon Sep 17 00:00:00 2001 From: agree <37550360+greenbea@users.noreply.github.com> Date: Mon, 18 Jan 2021 17:12:13 -0500 Subject: [PATCH 2/2] add destination_accountcode permission --- app/destinations/app_config.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/destinations/app_config.php b/app/destinations/app_config.php index babc2efc4b..666cef6107 100644 --- a/app/destinations/app_config.php +++ b/app/destinations/app_config.php @@ -120,6 +120,10 @@ $apps[$x]['permissions'][$y]['name'] = "destination_context"; $apps[$x]['permissions'][$y]['groups'][] = "superadmin"; $y++; + $apps[$x]['permissions'][$y]['name'] = "destination_accountcode"; + $apps[$x]['permissions'][$y]['groups'][] = "superadmin"; + $apps[$x]['permissions'][$y]['groups'][] = "admin"; + $y++; $apps[$x]['permissions'][$y]['name'] = "destination_fax"; $apps[$x]['permissions'][$y]['groups'][] = "superadmin"; $y++;