Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Asset widget frame load for fields, which disabled. For example, create new content type. Configure default body field for use assets. Open node creation form of this content type, if field exist on this form, then Asset widget frame will be loaded - it's ok. But when user has no access to field, Asset widget frame loaded in any case - no ok.
/**
* Implements hook_form_alter().
*/
function custom_form_alter(&$form, &$form_state, $form_id) {
if ($form_id == 'page_node_form') {
$form['body']['#access'] = FALSE;
}
}
Comment | File | Size | Author |
---|---|---|---|
#2 | asset-widget-frame-load-for-not-accessable-fields-2566861-2.patch | 763 bytes | zestagio |
Comments
Comment #2
zestagio CreditAttribution: zestagio commented