Fixed Strange behaviour viewing images as guest without permission

Puntocom

Well-known member
Hello. I have removed guest users access to the images in the resource manager. When I browse without been logged in and I click an image, it opens and then closes, instead of sending me to the register page. It only happens in the Resources section.

I have tried with midori and iceweasel (firefox).

I'm using XenForo 1.2.0 RC2 and Resource Manger 1.0.2.
 
I am unable to reproduce this.

With the View resource images permissions set to Not Set (No), when not logged in I see a thumbnail which when clicked on loads the error/login page.
 
I have tried with chromium also and I have the same problem. I have tried disabling all addons except Resource Manager. My template is pretty standard.
 
It appears to happen for the images displayed at the bottom of a resource, not within it.
 
You can fix this by changing this line in the resource_update template:
Code:
<li><a href="{xen:link attachments, $attachment}" target="_blank" class="LbTrigger {xen:if '!{$attachment.thumbnailUrl}', noThumb}"
to:
Code:
<li><a href="{xen:link attachments, $attachment}" target="_blank" class="{xen:if $canViewImages, LbTrigger} {xen:if '!{$attachment.thumbnailUrl}', noThumb}"
 
Back
Top Bottom