Hi,

I've installed node access module, configured it. But can't get results i want :

I want to change edit & delete access for the node author on a date. Example : I have a node type 'race', each race have a date, i want to disable editing and deleting the race after its date is past.

But i can't get the 'update' & 'delete' value of $op in node_access_access(...) function. Also i've tried to create a custom module with the hook_menu(...) [to hack the access callback of update & delete menu] and the hook_access(...) [to put my date check to return TRUE or FALSE for update & delete actions].

I've tried to directly put my check in node_access(...) function in the node.module. Here i can get the update & delete value for $op parameter so i can put my check here. But i don't want to keep it there, because it's a drupal core module, i think it's not appropriate and not safe.

Any ideas ?

Thanks

PS: Excuse my english level... :)