Skip to content

Commit 8eaa1b6

Browse files
committed
fix: corrected validation
1 parent 2790e2b commit 8eaa1b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

phpmyfaq/attachment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112

113113
if (
114114
$attachment && $attachment->getRecordId() > 0 && ($faqConfig->get('records.allowDownloadsForGuests') ||
115-
(($groupPermission || ($groupPermission && $userPermission)) && isset($permission['dlattachment'])))
115+
(($groupPermission || $userPermission) && isset($permission['dlattachment']) && $permission['dlattachment'] === true))
116116
) {
117117
$response = new StreamedResponse(function () use ($attachment) {
118118
$attachment->rawOut();

0 commit comments

Comments
 (0)