Skip to content

Commit 06a3a65

Browse files
authored
Improve the CEL for checking both Global and Collection access in a DatabaseApiKey (v2). (#126)
The correct way to check for the presence of a oneof field in CEL is by using the has() macro. For example, has(r.global_access) will correctly return true only if the global_access field is set in the scope oneof.
1 parent 6cfaede commit 06a3a65

4 files changed

Lines changed: 25 additions & 25 deletions

File tree

gen/go/qdrant/cloud/cluster/auth/v2/database_api_key.pb.go

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gen/python/qdrant/cloud/cluster/auth/v2/database_api_key_pb2.py

Lines changed: 17 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)