You are here

function _homebox_user_access_current_homebox in Homebox 6

Helper function to check access to current homebox

1 string reference to '_homebox_user_access_current_homebox'
homebox_menu in ./homebox.module
Implementation of hook_menu().

File

./homebox.module, line 854
Home box main file, takes care of global functions settings constants, etc.

Code

function _homebox_user_access_current_homebox() {
  $pid = $_POST['pid'];
  if (is_numeric($pid) && !is_null($pid) && ($page_safe_name = _homebox_get_profile_safe_name($pid))) {
    return user_access('access homebox ' . $page_safe_name);
  }
  return FALSE;
}