The extension_password permission is not needed on the field name as the password is auto-generated. Because of this its only needed on the update.

This commit is contained in:
markjcrane
2015-07-06 12:15:03 -06:00
parent 44245e760f
commit a46295a4f2

View File

@@ -474,9 +474,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
$sql .= "'$extension_uuid', ";
$sql .= "'$extension', ";
$sql .= "'$number_alias', ";
if (permission_exists('extension_password')) {
$sql .= "'$password', ";
}
$sql .= "'$password', ";
if (if_group("superadmin") || (if_group("admin") && $billing_app_exists)) {
$sql .= "'$accountcode', ";
}