I'm creating a website and I have to give the possibility for an anonymous user to update a node. The node is recognized through the use of a code, code that I am sending to the user when the node is saved for the first time. And when I save this node (for the first time), the node is modified to ensure that it is owned by user X and not by anonymous. Ok, is a little complicated, but these are the requests from my client.
So, I send to the user a mail with this line into: http://DOMINIO.EXT/node/123/edit/codeSHA1.
My problem is that Drupal obviously tells me that access is denied to perform the edit operation (node uid is X, but I'm uid 0) when I click onto that link (in my email client).
How can I resolve this "problem"? I don't want to install TAC or TACLITE, but I can write PHP code into one of my custom module.