mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
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:
@@ -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', ";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user