Attachment Viewing as Anonymous Issue

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
mikedealer
Posts: 2
Joined: Fri Feb 20, 2015 12:01 am

Attachment Viewing as Anonymous Issue

Post by mikedealer »

I am having a "issue" i believe, or maybe its by design, im not sure.
i would like anonymous users to be able to view/download jpg attachments.
I dug around, found a post saying to remove this line from attachment.php
https://github.com/thorsten/phpMyFAQ/bl ... nt.php#L83

I proceeded to do it, and all that happens is when an attachment is clicked now, it comes up with a blank page. putting the link back in gives the same error of "You are not authorized."

I am using version 2.8.19

Any help would be much appreciated.
Thanks
mikedealer
Posts: 2
Joined: Fri Feb 20, 2015 12:01 am

Re: Attachment Viewing as Anonymous Issue

Post by mikedealer »

i think i actually resolved it, deleting the whole line didnt work.

original line
if ($attachment && ($groupPermission || ($groupPermission && $userPermission)) && $permission['dlattachment']) {

modification i made
if ($attachment) {

i removed:
&& ($groupPermission || ($groupPermission && $userPermission)) && $permission['dlattachment']

thanks for a great product.
Thorsten
Posts: 15749
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Attachment Viewing as Anonymous Issue

Post by Thorsten »

Hi,

we added an option in phpMyFAQ 2.9.0-alpha3 to allow anonymous attachment downloads.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply