Closed (fixed)
Project:
Drupal core
Version:
5.0-rc1
Component:
comment.module
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
19 Dec 2006 at 11:37 UTC
Updated:
19 Feb 2008 at 10:09 UTC
I want to create node where only "admins" can posts, but all visitors may read these comments. I've created node and set option read/write (else admins can't post comments). Then I write such nodeapi handler:
function mymodule_nodeapi(&$node, $op, $teaser = NULL, $page = NULL) {
if ($op == 'load' && $node->nid == 32 /*&& !user_access('administer comments')*/) { // commented for debug
return array('comment' => COMMENT_NODE_READ_ONLY);
}
Such hook hide link "add comment", but "reply" function is visible. Bug/feature? Is it impossible to make such page by standard comment.module?
Comments
Comment #1
ricabrantes commentedClosed, time out..