assign user to node

ilikedrupal - May 17, 2009 - 22:41

Hello,

I have to say that I started working with drupal few weeks ago and I just love it !

However I have little problem that I need to solve but not sure what is the easiest way.

I need to create content (nodes) with details about different tasks. These tasks can be taken by various users on my usite but the task itself should be assigned to one user only. When user finish it's job it should upload the results and then site admin can accept it.

Here is the question: how can I let users assign specific nodes with restriction to other users, but only if the node has been already asigned ?

Is there any easy way of doing this?

Thank you in advance drupal community!

Regards,
Nicola

assign node to the user with specific role, is there a way ?

ilikedrupal - May 19, 2009 - 19:16

Oh, come on.. no one knows it ? There has to be solution in drupal. Maybe I'm doing it wrong ?

All what I need is to assign a task to my users (I'm trying to create a game) and then as long as one node has been "taken" by pressing "I'm taking it" button, then no one else should be able to access this node from "Players" role. However the owner of the node should be able to give feedback about the node later..

How to solve this in drupal ? Is there any way?

Please help!

Thanks!
Nicky

_

WorldFallz - May 19, 2009 - 22:47

It's doable, i'm just not sure about the details of your desired implementation. I'd probably try doing it with either taxonomy_access or tac_lite and the author_taxonomy modules.

Another option might be to create a user taxonomy and use actions/triggers to add a term to that vocabulary every time a user is created or updated then, again, use taxonomy_access or tac_lite to control permissions.

_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.

userreference

grobemo - May 19, 2009 - 23:39

I'm also a little unclear on exactly how you envision this working, but you might consider creating a userreference field for each node with CCK. It would take a little bit of coding to replace the userreference with a button that sets the userreference to the uid of the user who clicked it, but it shouldn't be too hard.

 
 

Drupal is a registered trademark of Dries Buytaert.