I would like (in certain cases) to be able to limit the content that gets displayed to that which was created by a certain user. I know how I can fetch all content by a certain user, but that's not what I want. I'd like everything in the site that wasn't created by the current user to simply not appear. Any suggestions?

cheers,
Robert

-----------
visit me at http://www.robshouse.net!

Comments

AlanChandler’s picture

I have been trying to understand the use of the node_access table and I am struggling with it. However, there is a small experiment you could try.

There should be one record in the node_access table with a realm of 'all' and a nid and rid of '0'.

Just a thought, but if you delete this row, then I think no one has access to anything - accept of course the user who created it.

Isn't that what you want

robertDouglass’s picture

I hadn't thought of this approach. It wouldn't work for the purpose that I have in mind, though. I'm interesed in being able to switch between public mode and private mode, so to speak. I'd like to be able to experience a site filled with the content of all users, or just the content I've contributed. This would certainly be much more difficult, especially since comments have to handled correctly too. A comment must be seen as the child of the original node. I'd want to see all comments from others to my nodes, but none of my comments to other people's nodes.

- Robert Douglass

-----
visit me at www.robshouse.net