]> BookStack Code Mirror - bookstack/commit
Fixed issue where restricted page content in plaintext export
authorDan Brown <redacted>
Fri, 18 Dec 2020 13:56:00 +0000 (13:56 +0000)
committerDan Brown <redacted>
Fri, 18 Dec 2020 13:56:00 +0000 (13:56 +0000)
commit2acef3c2ecfae924204b7d0cef05d0a7916d81af
treee1d1da460a899c176045dff9d1b57c68cf8b122e
parent3f3fad7113344ac262111cce049ed3b11d2d7f83
Fixed issue where restricted page content in plaintext export

The content of pages made non-viewable to a user via permissions, within a visible parent, could be seen via the plaintext export option. Before v0.30.6 this would have applied only to scenarios where all pages within the chapter were made non-visible. In v0.30.6 this would make all pages within the chapter visible.

As per #2414
app/Entities/ExportService.php
app/Uploads/ImageRepo.php
tests/Permissions/ExportPermissionsTest.php [new file with mode: 0644]