Skip to content

Commit

Permalink
Merge pull request #34 from ably/refactor/capability
Browse files Browse the repository at this point in the history
Removed non-documented capability key check
  • Loading branch information
sacOO7 authored Jun 9, 2023
2 parents 84d1963 + 3d7d992 commit e8cf18c
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 e8cf18c

Please sign in to comment.