Skip to content

Commit

Permalink
Removed non-documented capability key check from ablybroadcaster
Browse files Browse the repository at this point in the history
  • Loading branch information
sacOO7 committed Jun 7, 2023
1 parent d569a7d commit 3d7d992
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/AblyBroadcaster.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,6 @@ public function auth($request)
if (is_array($userChannelMetaData) && array_key_exists('ably-capability', $userChannelMetaData)) {
$guardedChannelCapability = $userChannelMetaData['ably-capability'];
unset($userChannelMetaData['ably-capability']);
} else if (is_array($userChannelMetaData) && array_key_exists('capability', $userChannelMetaData)) { // deprecated, will be removed in future versions
$guardedChannelCapability = $userChannelMetaData['capability'];
unset($userChannelMetaData['capability']);
}
} catch (\Exception $e) {
throw new AccessDeniedHttpException('Access denied, '.$this->stringify($channelName, $connectionId, $userId), $e);
Expand Down

0 comments on commit 3d7d992

Please sign in to comment.