I'd like to optionally make it so the module restricts edit access to the node once it's been purchased by the customer. This would prevent someone, for example, from modifying registration fields after they've registered for an event and their order has been processed.
I believe the place to put this would be in the node checkout settings form for the node type for now.
Comments
Comment #1
amitaibuI've thought about a possible solution without turning this module into an 'access permissions module':
Content access can control the access per node. It also has workflow_ng integration. Now uc_nc will have to pass the correct node to content acess via wf_ng.
Comment #2
rszrama commentedAye, I integrated UC Node Access with ACL + Content Access and it worked great. I'd like to avoid the dependency in this one if at all possible, so I've just been using redirects in hook_nodeapi() I believe. That should be reviewed, but it seems I could do a similar redirect in hook_form_alter() for a node's edit form if the node is no longer in the user's cart. That was my initial plan... something light.
Comment #3
rszrama commentedComment #4
rszrama commentedComment #5
agileware commentedAnother solution that I used is to use workflow access and make an ubercart conditional action to set the workflow to something uneditable by non-admins on checkout.
You could also do a similar thing with taxonomy access control and use conditional actions to set a specific taxonomy term on checkout.
Comment #6
Rene Hostettler commentedHi can someone help me with a code sample to set the taxonomy term so I can use taxonomy access to block editing of nodes after checkout?
I spent hours trying to get this to work but for some reason just couldn't get it right.
tried using
$nodeObj->taxonomy = array(15,19,21,23);
taxonomy_node_save($node, $terms)
and even writing an sql query to do an insert to term node directly but after spending half a day have had no sucess at all.
Does anyone have the code I can use to do this?