Hide the contact users and groups if contact permissions value is set to false
This commit is contained in:
parent
923c748073
commit
42d18aada9
|
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
The Initial Developer of the Original Code is
|
The Initial Developer of the Original Code is
|
||||||
Mark J Crane <markjcrane@fusionpbx.com>
|
Mark J Crane <markjcrane@fusionpbx.com>
|
||||||
Portions created by the Initial Developer are Copyright (C) 2018 - 2021
|
Portions created by the Initial Developer are Copyright (C) 2018 - 2022
|
||||||
the Initial Developer. All Rights Reserved.
|
the Initial Developer. All Rights Reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
@ -1371,6 +1371,7 @@ echo " </div>\n";
|
||||||
echo " </div>\n";
|
echo " </div>\n";
|
||||||
unset($contact_note);
|
unset($contact_note);
|
||||||
|
|
||||||
|
if ($_SESSION['contact']['permissions']['boolean'] == "true") {
|
||||||
if (permission_exists('contact_user_view') || permission_exists('contact_group_view')) {
|
if (permission_exists('contact_user_view') || permission_exists('contact_group_view')) {
|
||||||
echo " <div class='form_set'>\n";
|
echo " <div class='form_set'>\n";
|
||||||
echo " <div class='heading'>\n";
|
echo " <div class='heading'>\n";
|
||||||
|
|
@ -1473,7 +1474,6 @@ if (permission_exists('contact_user_view') || permission_exists('contact_group_v
|
||||||
if (permission_exists('contact_group_add')) {
|
if (permission_exists('contact_group_add')) {
|
||||||
if (is_array($contact_groups_available) && @sizeof($contact_groups_available) != 0) {
|
if (is_array($contact_groups_available) && @sizeof($contact_groups_available) != 0) {
|
||||||
echo " <div class='vtable' style='border-bottom: none;'>\n";
|
echo " <div class='vtable' style='border-bottom: none;'>\n";
|
||||||
|
|
||||||
echo " <select name='contact_group_uuid' class='formfld' style='width: auto; margin-right: 3px;'>\n";
|
echo " <select name='contact_group_uuid' class='formfld' style='width: auto; margin-right: 3px;'>\n";
|
||||||
echo " <option value=''></option>\n";
|
echo " <option value=''></option>\n";
|
||||||
foreach ($contact_groups_available as $field) {
|
foreach ($contact_groups_available as $field) {
|
||||||
|
|
@ -1500,6 +1500,7 @@ if (permission_exists('contact_user_view') || permission_exists('contact_group_v
|
||||||
|
|
||||||
echo " </div>\n";
|
echo " </div>\n";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (permission_exists('contact_phone_view')) {
|
if (permission_exists('contact_phone_view')) {
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue