• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed Strange behaviour viewing images as guest without permission

Puntocom

Well-known member
#1
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.
 

Brogan

XenForo moderator
Staff member
#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.
 

Puntocom

Well-known member
#3
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.
 

Mike

XenForo developer
Staff member
#10
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}"