You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Binaries:
Node: 20.12.2
npm: 10.5.0
Yarn: N/A
pnpm: 9.10.0
Relevant Packages:
payload: 3.0.0-beta.104
Operating System:
Platform: darwin
Arch: arm64
Version: Darwin Kernel Version 23.6.0: Mon Jul 29 21:13:04 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T6020
Available memory (MB): 16384
Available CPU cores: 12
Describe the Bug
Returning an or statement from the access callback is always true when used for the update, create and delete accesses.
The exact same callback used for the read access seems to work fine.
Fixes#8224
Fixes an issue with PG `where` filters not being respected when
generating doc policies/permissions by utilizing the combineQueries
function in getEntityPolicies function.
Link to reproduction
No response
Environment Info
Describe the Bug
Returning an
or
statement from the access callback is always true when used for theupdate
,create
anddelete
accesses.The exact same callback used for the
read
access seems to work fine.Reproduction Steps
Example access that should always be false:
Example collections:
Adapters and Plugins
No response
The text was updated successfully, but these errors were encountered: