Closed (duplicate)
Project:
Comment driven
Version:
6.x-1.0-alpha3
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
27 Sep 2011 at 11:48 UTC
Updated:
27 Sep 2011 at 14:02 UTC
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
Comment #1
arhak commented#892310-3: Missing permissions for some content types (those not handled by node module)