diff --git a/protected_node.module b/protected_node.module
index 4469ac8..3f8e26b 100644
--- a/protected_node.module
+++ b/protected_node.module
@@ -392,8 +392,7 @@ function protected_node_form_alter(&$form, &$form_state, $form_id) {
     module_load_include('settings.inc', 'protected_node');
     protected_node_node_type_form_alter($form);
   }
-  elseif (isset($form['type']['#value']) &&  substr($form['#id'], -9) == 'node-form'
-  && (user_access('edit any password') || user_access('edit ' . $form['type']['#value'] . ' password'))) {
+  elseif (isset($form['type']['#value']) && (user_access('edit any password') || user_access('edit ' . $form['type']['#value'] . ' password'))) {
     module_load_include('settings.inc', 'protected_node');
     protected_node_node_form_alter($form);
   }
