You are here

function _forum_access_forum_access_callback in Forum Access 6

Access callback for the 'forum' menu path.

Returns TRUE if the user has access to the specified forum or containter. If no forum or container is specified will return TRUE if the user has at least one role that can access at least one forum.

1 string reference to '_forum_access_forum_access_callback'
forum_access_menu_alter in ./forum_access.module
Implementation of hook_menu_alter().

File

./forum_access.module, line 609
forum_access.module

Code

function _forum_access_forum_access_callback($tid = NULL) {
  return !$tid && _forum_access_access_any_forum() || forum_access_access($tid, 'view');
}