diff --git a/composer.json b/composer.json index 00f7829f..ea933300 100644 --- a/composer.json +++ b/composer.json @@ -4,7 +4,7 @@ "type": "drupal-module", "license": "GPL-2.0-or-later", "require": { - "dpc-sdp/tide_core": "^3.1.13", + "dpc-sdp/tide_core": "^3.2.0", "dpc-sdp/tide_media": "^3.0.8", "drupal/create_menus_permission": "^1.0", "drupal/key_value_field": "^1.3" diff --git a/modules/tide_site_theming/tide_site_theming.module b/modules/tide_site_theming/tide_site_theming.module index 937cde11..af5892de 100644 --- a/modules/tide_site_theming/tide_site_theming.module +++ b/modules/tide_site_theming/tide_site_theming.module @@ -10,12 +10,14 @@ */ function tide_site_theming_field_group_form_process_alter(array &$element, &$group, &$complete_form) { // Grant access to site theming fields. + if (!isset($element['#id'])) { + return; + } if ($element['#id'] == 'tide-site-theming-fileds' || $element['#id'] == 'tide-feature-flag-fields') { $user = \Drupal::currentUser(); $access_tide_site_theming_fields = 'tide site theming'; if (!$user->hasPermission($access_tide_site_theming_fields)) { $element['#access'] = FALSE; - return; } } }