Binary files modal-original//modal-7.x-1.x-dev.tar.gz and modal//modal-7.x-1.x-dev.tar.gz differ
diff -rupN modal-original//modal_entityform/modal_entityform.module modal//modal_entityform/modal_entityform.module
--- modal-original//modal_entityform/modal_entityform.module	2013-12-19 06:34:52.000000000 -0500
+++ modal//modal_entityform/modal_entityform.module	2014-03-11 14:38:17.000000000 -0400
@@ -48,8 +48,9 @@ function modal_entityform_access($op, $e
   if (!entityform_access($op, $entityform)) {
     return FALSE;
   }
-  $rule_result = entityform_invoke_rules($entityform, 'access_rules');
-  return _entityform_rules_all_pass($rule_result);
+  $rule_result = _entity_rules_invoke_rules($entityform, 'entityform' ,'form_access');
+  $result = _entity_rules_all_pass($rule_result);
+  return $result;
 }
 
 /**
@@ -67,12 +68,12 @@ function modal_entityform_page_submit($e
 
   $entityform_type_entity = entityform_type_load($entityform->type);
 
-  if (!modal_entityform_access('submit', $entityform)) {
+  if (!modal_entityform_access('submit', $entityform_type_entity)) {
     $commands = array(ctools_modal_command_display(t('Access denied'), t('You are not authorized to access this page.')));
     drupal_alter('modal_entityform_submit_access_denied', $commands, $entityform_type_entity, $entityform);
     return array('#type' => 'ajax', '#commands' => $commands);
   }
-
+  
   $title = $entityform_type_entity->label;
   drupal_alter('modal_entityform_submit_title', $title, $entityform_type_entity, $entityform);
 
@@ -156,6 +157,5 @@ function modal_entityform_form($entityfo
       $commands[] = ctools_ajax_command_redirect($_GET['destination']);
     }
   }
-
   return array('#type' => 'ajax', '#commands' => $commands);
 }
