diff --git a/app/destinations/app_config.php b/app/destinations/app_config.php index 5ff97f7cd0..769d520bb2 100644 --- a/app/destinations/app_config.php +++ b/app/destinations/app_config.php @@ -42,7 +42,7 @@ $apps[$x]['permissions'][$y]['name'] = 'destination_domain'; $apps[$x]['permissions'][$y]['groups'][] = 'superadmin'; $y++; - $apps[$x]['permissions'][$y]['name'] = 'destination_show_all'; + $apps[$x]['permissions'][$y]['name'] = 'destination_all'; $apps[$x]['permissions'][$y]['groups'][] = 'superadmin'; $y++; diff --git a/app/destinations/destinations.php b/app/destinations/destinations.php index 2004734072..5caafc6850 100644 --- a/app/destinations/destinations.php +++ b/app/destinations/destinations.php @@ -56,7 +56,7 @@ else { echo " ".$text['header-destinations']."\n"; echo "
\n"; echo " \n"; - if (permission_exists('destination_show_all')) { + if (permission_exists('destination_all')) { if ($_GET['showall'] == 'true') { echo " "; } @@ -78,7 +78,7 @@ else { //get total destination count from the database $sql = "select count(*) as num_rows from v_destinations "; - if ($_GET['showall'] && permission_exists('destination_show_all')) { + if ($_GET['showall'] && permission_exists('destination_all')) { if (strlen($search) > 0) { $sql .= "where "; } @@ -110,7 +110,7 @@ else { //prepare to page the results $rows_per_page = 150; $param = "&search=".$search; - if ($_GET['showall'] && permission_exists('destination_show_all')) { + if ($_GET['showall'] && permission_exists('destination_all')) { $param .= "&showall=true"; } $page = $_GET['page']; @@ -120,7 +120,7 @@ else { //get the list $sql = "select * from v_destinations "; - if ($_GET['showall'] && permission_exists('destination_show_all')) { + if ($_GET['showall'] && permission_exists('destination_all')) { if (strlen($search) > 0) { $sql .= " where "; } @@ -153,7 +153,7 @@ else { echo "\n"; echo "\n"; - if ($_GET['showall'] && permission_exists('destination_show_all')) { + if ($_GET['showall'] && permission_exists('destination_all')) { echo th_order_by('domain_name', $text['label-domain-name'], $order_by, $order, '', '', $param); } echo th_order_by('destination_type', $text['label-destination_type'], $order_by, $order, '', '', $param); @@ -174,7 +174,7 @@ else { foreach($destination as $row) { $tr_link = "href='destination_edit.php?id=".$row['destination_uuid']."'"; echo "\n"; - if ($_GET['showall'] && permission_exists('destination_show_all')) { + if ($_GET['showall'] && permission_exists('destination_all')) { echo " \n"; } echo " \n"; @@ -197,7 +197,7 @@ else { } //end if results echo "\n"; - if ($_GET['showall'] && permission_exists('destination_show_all')) { + if ($_GET['showall'] && permission_exists('destination_all')) { echo "\n"; echo "
".$_SESSION['domains'][$row['domain_uuid']]['domain_name']."".ucwords($row['destination_type'])."
\n"; } else { diff --git a/app/devices/app_config.php b/app/devices/app_config.php index fd6ee546da..4ead87e1e0 100644 --- a/app/devices/app_config.php +++ b/app/devices/app_config.php @@ -121,7 +121,7 @@ $apps[$x]['permissions'][$y]['name'] = 'device_profile_domain'; $apps[$x]['permissions'][$y]['groups'][] = 'superadmin'; $y++; - $apps[$x]['permissions'][$y]['name'] = 'device_show_all'; + $apps[$x]['permissions'][$y]['name'] = 'device_all'; $apps[$x]['permissions'][$y]['groups'][] = 'superadmin'; //schema details diff --git a/app/devices/devices.php b/app/devices/devices.php index a01ebc153d..667acd96e4 100644 --- a/app/devices/devices.php +++ b/app/devices/devices.php @@ -58,7 +58,7 @@ else { echo " \n"; echo " \n"; - if (permission_exists('device_show_all')) { + if (permission_exists('device_all')) { echo " \n"; if ($_GET['showall'] == 'true') { echo " "; @@ -87,14 +87,14 @@ else { //prepare to page the results $sql = "select count(*) as num_rows from v_devices "; - if ($_GET['showall'] && permission_exists('device_show_all')) { + if ($_GET['showall'] && permission_exists('device_all')) { if (strlen($search) > 0) { $sql .= "where "; } } else { $sql .= "where ("; $sql .= " domain_uuid = '$domain_uuid' "; - if (permission_exists('device_show_all')) { + if (permission_exists('device_all')) { $sql .= " or domain_uuid is null "; } $sql .= ") "; @@ -134,14 +134,14 @@ else { //get the list $sql = "select * from v_devices "; - if ($_GET['showall'] && permission_exists('device_show_all')) { + if ($_GET['showall'] && permission_exists('device_all')) { if (strlen($search) > 0) { $sql .= "where "; } } else { $sql .= "where ("; $sql .= " domain_uuid = '$domain_uuid' "; - if (permission_exists('device_show_all')) { + if (permission_exists('device_all')) { $sql .= " or domain_uuid is null "; } $sql .= ") "; @@ -178,7 +178,7 @@ else { echo "\n"; echo "\n"; - if ($_GET['showall'] && permission_exists('device_show_all')) { + if ($_GET['showall'] && permission_exists('device_all')) { echo th_order_by('domain_name', $text['label-domain-name'], $order_by, $order, $param); } echo th_order_by('device_mac_address', $text['label-device_mac_address'], $order_by, $order); @@ -203,7 +203,7 @@ else { foreach($result as $row) { $tr_link = (permission_exists('device_edit')) ? "href='device_edit.php?id=".$row['device_uuid']."'" : null; echo "\n"; - if ($_GET['showall'] && permission_exists('device_show_all')) { + if ($_GET['showall'] && permission_exists('device_all')) { echo " \n"; } echo "
".$_SESSION['domains'][$row['domain_uuid']]['domain_name']."";