Skip to content

Commit

Permalink
Remove prefix before normalizing the channel name.
Browse files Browse the repository at this point in the history
  • Loading branch information
tlaverdure committed Nov 14, 2019
1 parent e904f53 commit b204042
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Illuminate/Broadcasting/Broadcasters/RedisBroadcaster.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,14 @@ public function __construct(Redis $redis, $connection = null)
*/
public function auth($request)
{
$channelName = $this->normalizeChannelName($request->channel_name);
$channelName = str_replace(config('database.redis.options.prefix', ''), '', $request->channel_name);
$channelName = $this->normalizeChannelName($channelName);

if ($this->isGuardedChannel($request->channel_name) &&
! $this->retrieveUser($request, $channelName)) {
throw new AccessDeniedHttpException;
}

$channelName = str_replace(config('redis.options.prefix', ''), '', $channelName);

return parent::verifyUserCanAccessChannel(
$request, $channelName
);
Expand Down

0 comments on commit b204042

Please sign in to comment.