function ctools_perm_ctools_access_check

Check for access.

1 string reference to 'ctools_perm_ctools_access_check'
perm.inc in plugins/access/perm.inc
Plugin to provide access control based on user permission strings.

File

plugins/access/perm.inc, line 52

Code

function ctools_perm_ctools_access_check($conf, $context) {
    // As far as I know there should always be a context at this point, but this
    // is safe.
    if (empty($context) || empty($context->data)) {
        return FALSE;
    }
    return user_access($conf['perm'], $context->data);
}