page displaying related links inaccessible to anonymous user

datawench - April 16, 2008 - 21:58
Project:Related links
Version:5.x-2.1
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

i'm using Related Links 5.x-2.2, and am only populating with Discovered links. rather than enabling a block, i'm coding it straight into my custom story template:

<?php
$rr
= module_invoke('relatedlinks', 'block', 'view', 3);
print
$rr['content'];
?>

i can see the related links when i'm logged in, but when i test it with another browser, so i can see it as an anoymous user, the page actually gives me an "access denied" error... and this error only shows up on those stories that are related to each other.

#1

datawench - April 16, 2008 - 22:09

update:

specifically, "administer nodes" permission has to be enabled for the anonymous user, in order for the page to display, if the page has related links.

#2

datawench - May 8, 2008 - 18:37

i see from my inbox that Zen has been responding to other bugs and issues. any hope of a look at this one?

#3

Zen - May 8, 2008 - 20:13

There really should be nothing in hook_block that would cause this. I recommend that you use the devel module to find out what's going on ... perhaps with diagnostic dpr calls.

Good luck.
-K

#4

SocialNicheGuru - December 5, 2008 - 14:55

I am having the same issue.

I was pulling my hair out (as I scratch my bald noggin).

It does work if I let anonymous users have permission to "adminster nodes" but who wants to let anonymous users do that? Not I.

Is there a way to create specific access controls for this modules on the access page. I was surprised to fined none.

allow to add children
allow to view link
allow to attach exisiting children

are just some examples.

Giving them access to "administer node" seems dangerous to me.

thanks,
Chris

 
 

Drupal is a registered trademark of Dries Buytaert.