diff --git a/app/devices/device_edit.php b/app/devices/device_edit.php
index ca4ff9a093..81e0529335 100644
--- a/app/devices/device_edit.php
+++ b/app/devices/device_edit.php
@@ -585,7 +585,9 @@ require_once "resources/require.php";
echo "
".$text['label-display_name']." | \n";
echo " ".$text['label-user_id']." | \n";
echo " ".$text['label-auth_id']." | \n";
- echo " ".$text['label-password']." | \n";
+ if (permission_exists('device_line_password')) {
+ echo " ".$text['label-password']." | \n";
+ }
echo " ".$text['label-sip_port']." | \n";
echo " ".$text['label-sip_transport']." | \n";
echo " ".$text['label-register_expires']." | \n";
diff --git a/app/extensions/extension_edit.php b/app/extensions/extension_edit.php
index c3547acc49..d841ba1858 100644
--- a/app/extensions/extension_edit.php
+++ b/app/extensions/extension_edit.php
@@ -915,7 +915,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
echo "\n";
echo "\n";
- if ($action == "update") {
+ if (permission_exists('extension_password' && $action == "update") {
echo "\n";
echo "| \n";
echo " ".$text['label-password']."\n";
|