diff --git a/app/devices/app_config.php b/app/devices/app_config.php index b1d1a8f5c..cf0495df1 100644 --- a/app/devices/app_config.php +++ b/app/devices/app_config.php @@ -301,6 +301,14 @@ $apps[$x]['permissions'][$y]['name'] = "device_profile_domain"; $apps[$x]['permissions'][$y]['groups'][] = "superadmin"; $y++; + $apps[$x]['permissions'][$y]['name'] = 'device_profile_select'; + $apps[$x]['permissions'][$y]['groups'][] = 'superadmin'; + $apps[$x]['permissions'][$y]['groups'][] = "admin"; + $y++; + $apps[$x]['permissions'][$y]['name'] = 'device_profile_select_edit'; + $apps[$x]['permissions'][$y]['groups'][] = 'superadmin'; + $apps[$x]['permissions'][$y]['groups'][] = "admin"; + $y++; $apps[$x]['permissions'][$y]['name'] = 'device_profile_key_view'; $apps[$x]['permissions'][$y]['groups'][] = 'superadmin'; $apps[$x]['permissions'][$y]['groups'][] = "admin"; @@ -4195,4 +4203,4 @@ $vendors[$y]['name'] = "sipnetic"; $z=0; -?> \ No newline at end of file +?> diff --git a/app/devices/device_edit.php b/app/devices/device_edit.php index 7e5613e7d..7f028f9d2 100644 --- a/app/devices/device_edit.php +++ b/app/devices/device_edit.php @@ -1406,32 +1406,36 @@ echo " "; } - if (permission_exists('device_profile_edit')) { - //device profile - $sql = "select * from v_device_profiles "; - $sql .= "where (domain_uuid = :domain_uuid or domain_uuid is null) "; - $sql .= "order by device_profile_name asc "; - $parameters['domain_uuid'] = $domain_uuid; - $database = new database; - $result = $database->select($sql, $parameters, 'all'); - if (is_array($result) && @sizeof($result) != 0) { - echo "