### What? When the doc permissions were retrieved from the DB, we were coercing them into strings even when they should not have been. ### Why? Usage of `id.toString()` ### How? Remove `id.toString()`. The id will be correct by this point and we should never coerce id's like this. Fixes https://github.com/payloadcms/payload/issues/8218