Once I protect a node, I can't un-protect it. I created a node and assigned it a password, but later I decided that the node didn't need to be protected. When I edit the node and uncheck the "Node is protected" box, the node always reverts to protected status, no matter how many times I uncheck the box and re-save the node.
Any ideas?
Comments
Comment #1
beanti commentedSame here, anybody got an idea?
Comment #2
skippy13 commentedEdit protected_node.module, and go to line 120. It should be a closing curly brace. Add the following after it:
That will delete from the protected_nodes table the node ID if the value of is_protected is zero or false.
This is not the best long-term solution, because it will always try to delete from the protected_nodes table, regardless of whether that node was protected or not. I don't think that's too big of a deal, since it'll be a null operation: the node doesn't exist in the DB, the DB will determine that, and nothing will be deleted. But it is another DB hit, so if you have an extremely busy site, or a very slow DB, it's something to keep in mind.
Comment #3
mtolmacs commentedHEAD fixes this. Please test.
Comment #4
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.