From 09b6a506fc4c9816c22507e5a20fb3984621174a Mon Sep 17 00:00:00 2001 From: artem Date: Thu, 5 Sep 2019 12:37:14 +0300 Subject: [PATCH] pm -> chat groups --- application/libraries/Aauth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/libraries/Aauth.php b/application/libraries/Aauth.php index b47c2e1..08d9ae6 100644 --- a/application/libraries/Aauth.php +++ b/application/libraries/Aauth.php @@ -1951,7 +1951,7 @@ class Aauth { $this->error($this->CI->lang->line('aauth_error_self_pm')); return false; } - if (($this->is_banned($receiver_id) || !$this->user_exist_by_id($receiver_id)) || ($sender_id && ($this->is_banned($sender_id) || !$this->user_exist_by_id($sender_id)))){ + if (($this->is_banned($receiver_id) || !$this->get_group_id($receiver_id)) || ($sender_id && ($this->is_banned($sender_id) || !$this->user_exist_by_id($sender_id)))){ $this->error($this->CI->lang->line('aauth_error_no_user')); return false; }