You are here

function space_og::access_space in Spaces 6.3

Same name and namespace in other branches
  1. 7.3 spaces_og/plugins/space_og.inc \space_og::access_space()
  2. 7 spaces_og/plugins/space_og.inc \space_og::access_space()

Override of access_space().

Overrides space_type::access_space

File

spaces_og/plugins/space_og.inc, line 53

Class

space_og
Organic groups integration for Spaces.

Code

function access_space($account = NULL) {
  global $user;
  $account = isset($account) ? $account : $user;
  return parent::access_space($account) && node_access('view', $this->group, $account);
}