1
0
Fork 0
mirror of synced 2024-09-28 23:41:23 +12:00
This commit is contained in:
Jake Barnby 2022-08-13 02:46:50 +12:00
parent 09b001e891
commit 8d4191b1a0
2 changed files with 2 additions and 2 deletions

View file

@ -1336,7 +1336,7 @@ App::delete('/v1/storage/buckets/:bucketId/files/:fileId')
if ($file->isEmpty() || $file->getAttribute('bucketId') !== $bucketId) {
throw new Exception('File not found', 404, Exception::STORAGE_FILE_NOT_FOUND);
}
if ($fileSecurity) {
$valid |= $validator->isValid($file->getDelete());
}

View file

@ -91,7 +91,7 @@ class DatabasesPermissionsGuestTest extends Scope
]);
foreach ($documents['body']['documents'] as $document) {
foreach($document['$permissions'] as $permission) {
foreach ($document['$permissions'] as $permission) {
if (!\str_starts_with($permission, 'read')) {
continue;
}