You are here

function forum_access_node_grants in Forum Access 5

Same name and namespace in other branches
  1. 8 forum_access.module \forum_access_node_grants()
  2. 6 forum_access.module \forum_access_node_grants()
  3. 7 forum_access.module \forum_access_node_grants()

This function supplies the forum access grants. forum_access simply uses roles as ACLs, so rids translate directly to gids.

File

./forum_access.module, line 15
forum_access.module

Code

function forum_access_node_grants($user, $op) {
  $grants['forum_access'] = array_keys($user->roles);
  return $grants;
}