We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2790e2b commit 8eaa1b6Copy full SHA for 8eaa1b6
phpmyfaq/attachment.php
@@ -112,7 +112,7 @@
112
113
if (
114
$attachment && $attachment->getRecordId() > 0 && ($faqConfig->get('records.allowDownloadsForGuests') ||
115
- (($groupPermission || ($groupPermission && $userPermission)) && isset($permission['dlattachment'])))
+ (($groupPermission || $userPermission) && isset($permission['dlattachment']) && $permission['dlattachment'] === true))
116
) {
117
$response = new StreamedResponse(function () use ($attachment) {
118
$attachment->rawOut();
0 commit comments