]> BookStack Code Mirror - bookstack/commit
Images: Changed how new image permissions are set 5601/head
authorDan Brown <redacted>
Sat, 3 May 2025 19:30:50 +0000 (20:30 +0100)
committerDan Brown <redacted>
Sat, 3 May 2025 19:30:50 +0000 (20:30 +0100)
commit1262083fcf48f522394d3a0cd7001be3e66eec53
tree7af90c304698d1c58d01001a44c3d196c2b43bdb
parentfa566f156ad8998d67a63be2856dafc7ce277d88
Images: Changed how new image permissions are set

Removed default public visibility for images at the driver level,
leaving only doing this as a specific action in the logic.
Added try/catch around permission setting so that
permission-incompatible environments won't fatally fail, but instead
log a warning.

Tested via a google cloud storage bucket FUSE mount, mounted under another
user but with open 777 permissions.

Related to #5269
app/Config/filesystems.php
app/Uploads/ImageStorageDisk.php