Update switch_music_on_hold.php

Remove permission for the select list as we would want all users to see global music on hold.
This commit is contained in:
FusionPBX 2016-07-06 15:41:26 -06:00 committed by GitHub
parent 454fb19843
commit ade26ea704
1 changed files with 1 additions and 4 deletions

View File

@ -110,10 +110,7 @@ include "root.php";
$sql .= "d.domain_name, m.* ";
$sql .= "from v_music_on_hold as m ";
$sql .= "left join v_domains as d ON d.domain_uuid = m.domain_uuid ";
$sql .= "where m.domain_uuid = '".$this->domain_uuid."' ";
if (permission_exists('music_on_hold_domain')) {
$sql .= "or m.domain_uuid is null ";
}
$sql .= "where (m.domain_uuid = '".$this->domain_uuid."' or m.domain_uuid is null) ";
$sql .= "order by m.domain_uuid desc, music_on_hold_rate asc, music_on_hold_name asc";
$prep_statement = $this->db->prepare(check_sql($sql));
$prep_statement->execute();