Update user_edit.php

This commit is contained in:
FusionPBX 2020-04-17 16:59:38 -06:00 committed by GitHub
parent 789dadf579
commit 340b32f092
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -136,7 +136,7 @@
$group_uuid_name = $_POST["group_uuid_name"];
$user_enabled = $_POST["user_enabled"];
$api_key = $_POST["api_key"];
if (permission_exists('message_view')) {
if (permission_exists('message_key')) {
$message_key = $_POST["message_key"];
}
@ -329,7 +329,7 @@
unset($sql, $parameters, $row);
//check to see if message key is set
if (permission_exists('message_view')) {
if (permission_exists('message_key')) {
$sql = "select user_setting_uuid, user_setting_value from v_user_settings ";
$sql .= "where user_setting_category = 'message' ";
$sql .= "and user_setting_subcategory = 'key' ";