I want a user A to be able to post a node visible (by a view) to another user B or C (picked up from user reference field in a content type filetred if possible only with user linked to him) so that user B would see his own posts and also user A posts addressed to him and user C would see his own posts and user A's posts addressed to user C. User A would be presented the lists
To do so I thought the best way would be a user selection a the profile of user B and C to link them to user A (registration would be done by admin) but It seems I cannot populate database data with php on a profile field selection list.
Any Idea on how to accomplish this ?
Thanks in advance for your answers

Comments

Mark Theunissen’s picture

I battle to understand exactly what you need, but I think I have a fairly good idea.

Have you tried the following module:

http://drupal.org/project/nodeaccess

It will allow a certain role to grant access to nodes by other users on a per-user basis. I haven't used it personally but that sounds like the thing you need.

There is another one called Content Access:

http://drupal.org/project/content_access

Does that help?

Mark

http://codebaboon.com
Drupal based services

sequoidrake’s picture

Thank you very much for this information, I'll definitly give it a try !
The site I'm building is an e-learning site, I've already tryed drupal-ed, but my needs are not as open as the shema provided by drupal-ed.
I thought I could manage my way to accomplish this functionnality with organic groups creating one group for each student and adding the teacher and the student only in that group so that the student's blog is kept private for him an his teacher but I'm getting stucked with automating this creation group creation as a lot of students will be added ofently.
So I'll try the module you propose.
Thanks again for your time and answer

Mark Theunissen’s picture

There are problably more in this category of the project downloads:

http://drupal.org/project/Modules/category/74

Mark

http://codebaboon.com
Drupal based services