Hi,
I have a forum in which people with a certain role can post and edit, and people with another role cannot post, nor edit (but they can on another forum).
I came to that setup with advanced_forum and forum_access.
When some people with the second role read the forum, they have no permission to reply to posts, but the button to post a reply is present (and broken).
So here's a little patch that consider permissions handled by forum_access and eventually hide the button.

Thanks.

-ermannob

Comments

ermannob’s picture

StatusFileSize
new625 bytes

Sorry, here's a slightly better revision, with some more checks.

mcdruid’s picture

Status:Needs review» Needs work

Thanks for the patch.

Can you do the same thing without this function?

_forum_access_get_tid($node)

Reason being that in Drupal by convention functions with names beginning with an _ should be considered private, and could therefore change (or disappear) without warning.