Hi

I am trying to deny specific roles the right to comment drive specific content types. I can see that a permission exists, but it only seems to be available for content types defined by the node module. My use case is within Open Atrium and I want to deny the right to drive the custom Project content type.

The relevant function from comment_drive.module appears to be :

function comment_driven_perm() {
  //$perms[] = COMMENT_DRIVEN_IMPORT__PERM;
  $perms[] = comment_driven_get_perm_name('drive', 'ALL');  
  
  foreach (node_get_types() as $type) {
    if ($type->module == 'node') {
      $node_type = $type->type;
      $perms[] = comment_driven_get_perm_name('drive', $node_type);
    }
  }

  return $perms;
}

Is there a reason to limit this permission to only to content types defined as belonging to the node module ?

Thanks for your help and a great module.

El B

Comments

arhak’s picture