By esend7881 on
I think I traced down my issue to this line of code in a module:
l($node->name, "blog/$node->uid")
I am just quickly wondering, is there any known effects the l() function has with a user's access privledges.
Under admin, I can see all the outputs ---it goes into an array. When anonymous, I see nothing.
Thanks
Comments
I want to add that I realize
I want to add that I realize my anonymous user settings don't allow access to actual content. However the information in that code snippet above is simply the link to that content.
So even though the actual content is blocked, I'd like the links and information still accessed...
who wrote that module? uid
who wrote that module?
uid is the user id. for anonymous users, the user id is unknown. Ask the developer what he wants for anonymous users?
No, its the user ID of the
No, its the user ID of the blogger.
Sorry for being unclear. I am usering the "Blogger" module to help me create a resume book for a class. Of course, I need to modify things. For example, I want it to say "Resumes" not "Bloggers" in the titles. That wasn't too bad.
Here is the code for the function that outputs the list. This is where the issue lies:
The
$outputvariable contains all the information we want to list. Namely, the array "rows"So for some reason, the "rows" array isn't being created when an anonymous user calls this function.
What is $node? Are you
What is $node? Are you loading the node with a $node = node_load($some-nid) before that? Maybe that is what anonymous users don't have permission for, and they get an empty node object.
If that is the case, you may need another way to get the node's name and its author's uid directly from the database, bypassing access control.
Aninymous user has UID==0
Anonymous user must have UID == 0 (zero).
Try to add in the table "users" 1 row with uid==0, status==1, name=='anonymous user'