Update extension_edit.php

Update permissions for extension edit.
This commit is contained in:
FusionPBX 2016-10-09 10:32:49 -06:00 committed by GitHub
parent ad0ab54d28
commit d1a7cda449
1 changed files with 4 additions and 4 deletions

View File

@ -867,7 +867,7 @@
echo "</tr>\n"; echo "</tr>\n";
} }
if ($action == "update") { if (permission_exists('extension_user_edit') && $action == "update") {
echo " <tr>"; echo " <tr>";
echo " <td class='vncell' valign='top'>".$text['label-users']."</td>"; echo " <td class='vncell' valign='top'>".$text['label-users']."</td>";
echo " <td class='vtable'>"; echo " <td class='vtable'>";
@ -901,7 +901,7 @@
echo " </tr>"; echo " </tr>";
} }
if (is_dir($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/app/voicemails')) { if (permission_exists('voicemail_edit') && is_dir($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/app/voicemails')) {
echo "<tr>\n"; echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n"; echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo " ".$text['label-voicemail_password']."\n"; echo " ".$text['label-voicemail_password']."\n";
@ -914,7 +914,7 @@
echo "</tr>\n"; echo "</tr>\n";
} }
if ($action == "update") { if (permission_exists('device_edit') && $action == "update") {
if (is_dir($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/app/devices')) { if (is_dir($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/app/devices')) {
echo "<tr>\n"; echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n"; echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
@ -1278,7 +1278,7 @@
echo "</td>\n"; echo "</td>\n";
echo "</tr>\n"; echo "</tr>\n";
if (is_dir($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/app/voicemails')) { if (permission_exists('voicemail_edit') && is_dir($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/app/voicemails')) {
echo "<tr>\n"; echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n"; echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo " ".$text['label-voicemail_enabled']."\n"; echo " ".$text['label-voicemail_enabled']."\n";