This simple patch (basically s/access content/access forums/g) makes it possible to restrict view access to forums.

This is useful e.g. for sites that want anonymous users to be able to see pages etc. but want people to have to log in before reading the forums.

I don't have a HEAD install anywhere, but the equivalent changes on my 4.5 installation are working just fine.

CommentFileSizeAuthor
access-forums.patch1.17 KBwillmoy
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

moshe weitzman’s picture

this won't hide forum posts from the home page, etc. if you want this type of access control, you have to implement a node access module. see the node permission API.

chx’s picture

check my sendbox for privateterms.module. With that, you can define terms which requires access privateterms privilege. You can not see nodes which are attached to these terms without that privilege, too.

It requires a very small taxonomy patch. It's 4.6 only. It does not use node access system for performance reasons and it does not work when a node belongs to multiple private terms. However, this very rarely happens with forum.