Skip to content

Commit

Permalink
fix check
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Oct 10, 2022
1 parent 09d53ee commit 3944a3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Broadcasting/Broadcasters/Broadcaster.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ protected function verifyUserCanAccessChannel($request, $channel)

$handler = $this->normalizeChannelHandlerToCallable($callback);

if (! empty($result = $handler($this->retrieveUser($request, $channel), ...$parameters))) {
if (! is_null($result = $handler($this->retrieveUser($request, $channel), ...$parameters))) {
return $this->validAuthenticationResponse($request, $result);
}
}
Expand Down

0 comments on commit 3944a3e

Please sign in to comment.