You are here

function _cmf_userspace_perms in Content Management Filter 6

Same name and namespace in other branches
  1. 6.2 cmf.module \_cmf_userspace_perms()
  2. 7 cmf.module \_cmf_userspace_perms()

Check user permissions to see menu item under example.com/user/UID/cmf

Parameters

access strings:

Return value

boolean

1 string reference to '_cmf_userspace_perms'
cmf_menu in ./cmf.module
Implementation of hook_menu().

File

./cmf.module, line 946
@brief Content management filter module file

Code

function _cmf_userspace_perms($manage_access, $view_access) {
  $args = func_get_args();
  $allow = FALSE;
  foreach ($args as $perm) {
    $allow |= user_access($perm);
  }

  //  return (user_access($manage_access) || user_access($view_access));
  return $allow;
}