Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
On the add forum topic page, if the gids argument is supplied as 'gids[]', all forum containers are visible in the 'Forums' drop down box, regardless of whether the logged in user actually has access to see them.
The attached patch checks to see if the user is a member of the supplied group. So if 'gids[]' is the argument, no query is returned for the list of forums, since the empty string is not a valid group id.
See the patch. This is the first one I've made so let me know if I've not explained it very well here!
Comment | File | Size | Author |
---|---|---|---|
og_forum-term-access.patch | 1.54 KB | james.williams |
Comments
Comment #1
Steven Jones CreditAttribution: Steven Jones commentedsubscribing.
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedGreat catch, ill get that committed today.
Best,
Paul Booker
Comment #3
Anonymous (not verified) CreditAttribution: Anonymous commentedComment #4
Anonymous (not verified) CreditAttribution: Anonymous commentedOops!