Soft Delete APIs should enforce data owner access check
Following endpoints only check for data viewer access currently:
- POST /api/storage/v2/records/{id}:delete (soft delete API)
- POST /api/storage/v2/records/delete (bulk delete API)
when user asks to soft delete the record, storage service should enforce the same level data access check as Purge API (DELETE /api/storage/v2/records/{id}), where only data owner can purge the record.
when the data access check is updated, we need to also update integration tests to reflect such changes in any related tests too.
As storage starts to integrate with Policy/OPA, we need to update corresponding data authz policies to reflect the changes as well.
Edited by Kelly Zhou