feat(drive): remove _for_owner() and use authz
remove related IDOR protection as Hurl tests are covering this surface
This commit is contained in:
@@ -554,15 +554,6 @@ impl FileReadPort for MockFileRepository {
|
||||
> {
|
||||
Ok(Box::pin(futures::stream::empty()))
|
||||
}
|
||||
|
||||
async fn get_file_for_owner(
|
||||
&self,
|
||||
id: &str,
|
||||
_owner_id: Uuid,
|
||||
) -> std::result::Result<File, DomainError> {
|
||||
// In this mock, ignore ownership — trash tests don't focus on ownership
|
||||
self.get_file(id).await
|
||||
}
|
||||
}
|
||||
|
||||
impl FileWritePort for MockFileRepository {
|
||||
|
||||
Reference in New Issue
Block a user