Skip to content

Commit

Permalink
return on non empty response from channels
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Oct 10, 2022
1 parent 0fbbbf2 commit 09d53ee
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 ($result = $handler($this->retrieveUser($request, $channel), ...$parameters)) {
if (! empty($result = $handler($this->retrieveUser($request, $channel), ...$parameters))) {
return $this->validAuthenticationResponse($request, $result);
}
}
Expand Down

0 comments on commit 09d53ee

Please sign in to comment.