function rules_action_data_set_access

Customize access check for data set action.

Related topics

File

modules/data.rules.inc, line 270

Code

function rules_action_data_set_access(RulesAbstractPlugin $element) {
    if (isset($element->settings['data:select']) && ($wrapper = $element->applyDataSelector($element->settings['data:select']))) {
        return $wrapper instanceof EntityMetadataWrapper && $wrapper->access('edit');
    }
}