Refactor broadcasting configuration and enhance chat authorization: update middleware in BroadcastServiceProvider, add support user check in ChatSupport, and improve chat.js for dynamic auth endpoint handling. Update channels.php to restrict access for support conversation.

This commit is contained in:
Mekan1206
2026-08-16 17:28:19 +05:00
parent 57dd8ee378
commit 0cf106994f
5 changed files with 40 additions and 4 deletions

View File

@@ -47,6 +47,10 @@ class ChatSupport
return false;
}
if (static::isSupportUser($user)) {
return true;
}
return $user->isMe() || $user->isAdmin() || $user->isDirektor() || $user->isManager();
}