I want to add delete permission for a specific node id programitically. I try calling 'node_delete' but it doesn't work.
how can I do it ?
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.
Sign up to join this communityI want to add delete permission for a specific node id programitically. I try calling 'node_delete' but it doesn't work.
how can I do it ?
The node_delete() function requires to have the delete permission for the current logged user. If you run the node_delete() function as anon user, is probably that doesn't work