mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
fix : cliente show departments chats
This commit is contained in:
@ -71,8 +71,10 @@ class ChatDeparmentModel extends Model
|
||||
"users",
|
||||
"chat_department_users.user_id = users.id",
|
||||
'left'
|
||||
)->where("chat_departments.type",$type)
|
||||
->where("chat_department_users.user_id",auth()->user()->id);
|
||||
)->where("chat_departments.type",$type);
|
||||
if(auth()->user()->cliente_id == null){
|
||||
$query->where("chat_department_users.user_id",auth()->user()->id);
|
||||
}
|
||||
|
||||
$results = $query->get()->getResultArray();
|
||||
// Create the desired structure
|
||||
|
||||
Reference in New Issue
Block a user