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
Attachment Viewing as Anonymous Issue
Moderator: Thorsten
-
mikedealer
- Posts: 2
- Joined: Fri Feb 20, 2015 12:01 am
Re: Attachment Viewing as Anonymous Issue
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.
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.
Re: Attachment Viewing as Anonymous Issue
Hi,
we added an option in phpMyFAQ 2.9.0-alpha3 to allow anonymous attachment downloads.
bye
Thorsten
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
amazon.de Wishlist