Fax Server: Added permission to control Advanced section visibility. Addresses comment on r7943.
This commit is contained in:
parent
ee483163d7
commit
ac49f1135d
|
|
@ -41,6 +41,10 @@
|
|||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "fax_extension_advanced";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "fax_inbox_view";
|
||||
$apps[$x]['permissions'][$y]['menu']['uuid'] = "9c9642e4-2b9b-2785-18d0-6c0a4ede2b2f";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
|
|
|
|||
|
|
@ -254,7 +254,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
|||
$sql .= "fax_destination_number, ";
|
||||
$sql .= "fax_name, ";
|
||||
$sql .= "fax_email, ";
|
||||
if (function_exists("imap_open") && file_exists("fax_box_remote.php") && (if_group("admin") || if_group("superadmin"))) {
|
||||
if (permission_exists('fax_extension_advanced') && function_exists("imap_open") && file_exists("fax_box_remote.php")) {
|
||||
$sql .= "fax_email_connection_type, ";
|
||||
$sql .= "fax_email_connection_host, ";
|
||||
$sql .= "fax_email_connection_port, ";
|
||||
|
|
@ -284,7 +284,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
|||
$sql .= "'$fax_destination_number', ";
|
||||
$sql .= "'$fax_name', ";
|
||||
$sql .= "'$fax_email', ";
|
||||
if (function_exists("imap_open") && file_exists("fax_box_remote.php") && (if_group("admin") || if_group("superadmin"))) {
|
||||
if (permission_exists('fax_extension_advanced') && function_exists("imap_open") && file_exists("fax_box_remote.php")) {
|
||||
$sql .= "'$fax_email_connection_type', ";
|
||||
$sql .= "'$fax_email_connection_host', ";
|
||||
$sql .= "'$fax_email_connection_port', ";
|
||||
|
|
@ -323,7 +323,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
|||
$sql .= "fax_destination_number = '$fax_destination_number', ";
|
||||
$sql .= "fax_name = '$fax_name', ";
|
||||
$sql .= "fax_email = '$fax_email', ";
|
||||
if (function_exists("imap_open") && file_exists("fax_box_remote.php") && (if_group("admin") || if_group("superadmin"))) {
|
||||
if (permission_exists('fax_extension_advanced') && function_exists("imap_open") && file_exists("fax_box_remote.php")) {
|
||||
$sql .= "fax_email_connection_type = '$fax_email_connection_type', ";
|
||||
$sql .= "fax_email_connection_host = '$fax_email_connection_host', ";
|
||||
$sql .= "fax_email_connection_port = '$fax_email_connection_port', ";
|
||||
|
|
@ -716,7 +716,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
|||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='fax_email' maxlength='255' value=\"$fax_email\">\n";
|
||||
if (function_exists("imap_open") && file_exists("fax_box_remote.php")) {
|
||||
if (permission_exists('fax_extension_advanced') && function_exists("imap_open") && file_exists("fax_box_remote.php")) {
|
||||
echo "<input type='button' class='btn' value='".$text['button-advanced']."' onclick=\"toggle_advanced('advanced_email_connection');\">\n";
|
||||
}
|
||||
echo "<br />\n";
|
||||
|
|
@ -845,7 +845,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
|||
echo "</table>";
|
||||
echo "<br />\n";
|
||||
|
||||
if (function_exists("imap_open") && file_exists("fax_box_remote.php") && (if_group("admin") || if_group("superadmin"))) {
|
||||
if (permission_exists('fax_extension_advanced') && function_exists("imap_open") && file_exists("fax_box_remote.php")) {
|
||||
|
||||
echo "<div id='advanced_email_connection' ".(($fax_email_connection_host == '') ? "style='display: none;'" : null).">\n";
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue