You are here

function spaces_access_space in Spaces 7

Same name and namespace in other branches
  1. 6.3 spaces.module \spaces_access_space()
  2. 7.3 spaces.module \spaces_access_space()

Access check for the current space.

1 call to spaces_access_space()
spaces_init in ./spaces.module
Implements hook_init().

File

./spaces.module, line 451

Code

function spaces_access_space($account = NULL) {
  $space = spaces_get_space();
  return $space ? $space
    ->access_space($account) : TRUE;
}