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.

Comments

datawench’s picture

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.

datawench’s picture

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

Zen’s picture

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

SocialNicheGuru’s picture

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

Zen’s picture

Version: 5.x-2.1 » 6.x-1.x-dev
Status: Active » Closed (cannot reproduce)

I have tested this with D5 and D6 and cannot reproduce it. Please list the steps to reproduce (preferably in D6).

hillaryneaf’s picture

I can reproduce this. Install Related Links, Install Workflow module (with workflow access). Turn both on.

1. Set up a workflow with 2 states -draft and published.
2. Set anonymous users to only be able to view content in the published state.
3. Create a piece of content and watch the draft content links appear in the Related Links block.

Turning on administer nodes for anonymous users should NEVER be done. It gives a lot of permissions to random site visitors.

hillaryneaf’s picture

Status: Closed (cannot reproduce) » Active

changing status...