From 340b32f092d0acd9e215714b5501f64a446ca6c4 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 17 Apr 2020 16:59:38 -0600 Subject: [PATCH] Update user_edit.php --- core/users/user_edit.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/users/user_edit.php b/core/users/user_edit.php index 63b141361d..5001e2464f 100644 --- a/core/users/user_edit.php +++ b/core/users/user_edit.php @@ -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' ";