]> BookStack Code Mirror - bookstack/commit
Exports: Updated perm checking for images in ZIP exports 5899/head
authorDan Brown <redacted>
Tue, 18 Nov 2025 14:19:46 +0000 (14:19 +0000)
committerDan Brown <redacted>
Tue, 18 Nov 2025 14:19:46 +0000 (14:19 +0000)
commitaaa28186bc0dff12c38f4627dac2034fa9ddb63d
treed344a7acaa8a6ec7e356763a313d6ec12135e6b5
parent8ab9252f9bd1626b87df044b14ce3469b1ca07bf
Exports: Updated perm checking for images in ZIP exports

For #5885
Adds to, uses and cleans-up central permission checking in ImageService
to mirror that which would be experienced by users in the UI to result
in the same image access conditions.

Adds testing to cover.
app/Exports/ZipExports/ZipExportReferences.php
app/Uploads/Image.php
app/Uploads/ImageService.php
app/Uploads/ImageStorage.php
tests/Exports/ZipExportTest.php