Re: Special file permission for guests ?
Reply #2 –
want to do; guests only see images (jpg, png etc.) in topic. do not download archive (zip, rar etc.) files.
edit Display.controller.php
find;
// Fetch attachments.
if (!empty($modSettings['attachmentEnable']) && allowedTo('view_attachments'))
replace;
// Fetch attachments.
if (!empty($modSettings['attachmentEnable']))
{
if(!allowedTo('view_attachments'))
$modSettings['attachmentShowImages'] = 0;}
see guests archive (zip, rar) filename, link appears. ok.
guests click attachment link redirect to login page. ok.
but the image does not appear to the guests