diff --git a/.pubnub.yml b/.pubnub.yml index 1280e81c..56dffe48 100644 --- a/.pubnub.yml +++ b/.pubnub.yml @@ -1,5 +1,5 @@ name: python -version: 10.8.0 +version: 10.8.1 schema: 1 scm: github.com/pubnub/python sdks: @@ -18,7 +18,7 @@ sdks: distributions: - distribution-type: library distribution-repository: package - package-name: pubnub-10.8.0 + package-name: pubnub-10.8.1 location: https://pypi.org/project/pubnub/ supported-platforms: supported-operating-systems: @@ -94,8 +94,8 @@ sdks: - distribution-type: library distribution-repository: git release - package-name: pubnub-10.8.0 - location: https://github.com/pubnub/python/releases/download/10.8.0/pubnub-10.8.0.tar.gz + package-name: pubnub-10.8.1 + location: https://github.com/pubnub/python/releases/download/10.8.1/pubnub-10.8.1.tar.gz supported-platforms: supported-operating-systems: Linux: @@ -169,6 +169,11 @@ sdks: license-url: https://github.com/encode/httpx/blob/master/LICENSE.md is-required: Required changelog: + - date: 2026-10-26 + version: 10.8.1 + changes: + - type: bug + text: "Reject uuids combined with channels or groups (grant-v2)." - date: 2026-10-19 version: 10.8.0 changes: diff --git a/CHANGELOG.md b/CHANGELOG.md index d9d08092..d3884a06 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## 10.8.1 +October 26 2026 + +#### Fixed +- Reject uuids combined with channels or groups (grant-v2). + ## 10.8.0 October 19 2026 diff --git a/pubnub/endpoints/access/grant.py b/pubnub/endpoints/access/grant.py index 9209ad37..126decb6 100644 --- a/pubnub/endpoints/access/grant.py +++ b/pubnub/endpoints/access/grant.py @@ -149,7 +149,7 @@ def validate_params(self): self.validate_publish_key() # self.validate_channels_and_groups() - if self._channels and self._groups and self._uuids: + if self._uuids and (self._channels or self._groups): raise PubNubException( pn_error=PNERR_PAM_INVALID_ARGUMENTS, errormsg="Grants for channels or channelGroups can't be changed together with grants for UUIDs") diff --git a/setup.py b/setup.py index 3646bd31..c3be7e7c 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name='pubnub', - version='10.8.0', + version='10.8.1', description='PubNub Real-time push service in the cloud', author='PubNub', author_email='support@pubnub.com',