0

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 ?

1
  • can you explain what "doesnt work" means?
    – saadlulu
    Commented May 13, 2013 at 11:36

1 Answer 1

1

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

2
  • So what is the solution in this case?
    – hd.
    Commented May 13, 2013 at 4:05
  • @hd. Can you explain your scenario ?
    – GoodSp33d
    Commented May 13, 2013 at 5:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.