فهرست منبع

Removed functionality to submit a job to reset feature permisssion on analysis node. This should be in the configuration settings to be consistent

spficklin 12 سال پیش
والد
کامیت
3052f89e6d
1فایلهای تغییر یافته به همراه0 افزوده شده و 23 حذف شده
  1. 0 23
      tripal_analysis/tripal_analysis.module

+ 0 - 23
tripal_analysis/tripal_analysis.module

@@ -183,13 +183,6 @@ function chado_analysis_insert($node) {
     drupal_write_record('node_revisions', $record, 'nid');
   }
 
-  if ($node->setpermissions) {
-    $job_args[0] = $analysis_id;
-    $job_args[1] = $node->nid;
-    tripal_add_job("Set permission for analysis associated features", 'tripal_analysis',
-                                'tripal_analysis_set_feature_permission', $job_args, $user->uid);
-  }
-
    // add the analysis to the node object for
    // use by other analysis modules that may be using this function
     $node->analysis = $analysis;
@@ -290,13 +283,6 @@ function chado_analysis_update($node) {
     $record->title = "$node->program ($node->programversion)";
   }
 
-  if ($node->setpermissions) {
-    $job_args[0] = $analysis_id;
-    $job_args[1] = $node->nid;
-    tripal_add_job("Set permission for analysis associated features", 'tripal_analysis',
-                                'tripal_analysis_set_feature_permission', $job_args, $user->uid);
-  }
-
   $record->nid = $node->nid;
   drupal_write_record('node', $record, 'nid');
   drupal_write_record('node_revisions', $record, 'nid');
@@ -452,15 +438,6 @@ function chado_analysis_form($node) {
          someone to recreate the analysis, including materials and methods
          for collection of the source data and performing the analysis'),
   );
-  /* Set permissions for all features associated with this analysis */
-  if (module_exists('node_privacy_byrole')) {
-    $form['setpermissions'] = array(
-        '#type' => 'checkbox',
-          '#title' => t('Submit a job to set the same permissions for all features associated with this analysis'),
-          '#default_value' => FALSE,
-         '#weight' => 10
-    );
-  }
 
   return $form;
 }