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:
@@ -47,6 +47,10 @@ class ChatSupport
|
||||
return false;
|
||||
}
|
||||
|
||||
if (static::isSupportUser($user)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return $user->isMe() || $user->isAdmin() || $user->isDirektor() || $user->isManager();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user