You are here

function spaces_feature_access in Spaces 6.2

Same name and namespace in other branches
  1. 6 spaces.module \spaces_feature_access()

Menu feature access wrapper.

1 call to spaces_feature_access()
spaces_plugin_access_spaces_feature::access in includes/spaces_plugin_access_spaces_feature.inc
1 string reference to 'spaces_feature_access'
spaces_plugin_access_spaces_feature::get_access_callback in includes/spaces_plugin_access_spaces_feature.inc

File

./spaces.module, line 1342

Code

function spaces_feature_access($feature = NULL) {
  if ($space = spaces_get_space()) {
    return user_access('access content') && $space
      ->feature_access($feature);
  }
  return user_access('access content');
}