This module doesn't delete records from the permissions_per_webform table when a webform has been deleted. To address this, I:

* Added hook_node_delete to remove any permissions records related to the nid.
* Added hook_update_N to remove existing data that no longer has a webform of that nid (been deleted, etc.) - along with a little messaging.
* Added hook_uninstall to remove the DB table manually (assuming hook_schema doesn't get it).

Please review and test this patch before applying anywhere important!

Comments

aubjr_drupal created an issue. See original summary.

aubjr_drupal’s picture

Priority: Normal » Major