Project
Test another owner’s record and ensure forbidden fields cannot be changed through the same request.
A signed-in user should still have a clear boundary. CodeArmory brings permission checks and the files around them into one workspace for a focused code review.
const actor = await authenticate(request);
if (!canEdit(actor, document)) return forbidden();
return updateAllowedFields(document, input);Test another owner’s record and ensure forbidden fields cannot be changed through the same request.
Compare actual behavior with the expected result. If a check fails, investigate it before applying more changes.
Base URL, credentials and a reachable server.
const actor = await authenticate(request);
if (!canEdit(actor, document)) return forbidden();
return updateAllowedFields(document, input);