mirror of
https://github.com/payloadcms/payload.git
synced 2026-09-14 20:07:19 +08:00
0669f93893
Removes the factory shape introduced in 0951f5311 by reading `slug` from
AccessArgs directly. Keeps the security guard (`user.collection !== slug`
denies) but restores the plain `Access` signature so the export shape is
unchanged from Tasks 2/3. Also tightens the cross-collection regression
test to explicitly set the attacker user's collection instead of relying
on createLocalReq's admin.user fallback.