Clean install of latest D 6 and OG
Cannot disable Comments for OG, whether enabled or disabled it always remain enabled.

Comments

jummonk’s picture

I've experienced the same problem.
Solved it with this code in a custom module. But why present the possibility of disabling comments in the group node content type if it is overriden by user permissions on comment module anyway? This code should not be necessary.
Can somenone explain what we are missing here?
Here follows the code to circumvent the problem.

function mymodule_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
global $user;
			
			
/*A group node should never be commented upon*/	
	if (	$op == 'alter' && og_is_group_type($node->type) ) {
		  unset($node->links['comment_add']);
    }
/*A group post should never be commented upon by an anonymous user.*/
	if (	$op == 'alter' && !$user-uid  &&	og_is_group_post_type($node->type) ) {
			unset($node->links['comment_add']);
	}	
}

Thanks.

Grayside’s picture

Status: Active » Closed (cannot reproduce)