Skip to content

Commit

Permalink
Merge branch '11.6.1-release' of github.com:SU-HSDO/suhumsci into shs…
Browse files Browse the repository at this point in the history
…-5963-fe-performance-refactor-theme-javascript
  • Loading branch information
Mari Nez committed Dec 3, 2024
2 parents 69a4b59 + f320398 commit 8bbc525
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config/default/views.view.user_admin_people.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ display:
hide_empty: false
empty_zero: false
hide_alter_empty: true
action_title: Action
include_exclude: exclude
selected_actions:
- pathauto_update_alias_user
- user_cancel_user_action
name:
id: name
table: users_field_data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -910,3 +910,16 @@ function su_humsci_profile_ckeditor5_plugin_info_alter(array &$plugin_definition
$plugin_definitions['ckeditor5_table'] = new CKEditor5PluginDefinition($tableDefinition);
}
}

/**
* Implements hook_form_FORM_ID_alter().
*/
function su_humsci_profile_form_user_form_alter(&$form, FormStateInterface $form_state) {
// Get current user roles and determine if has the 'administrator' role.
$roles = \Drupal::currentUser()->getRoles();
$is_admin = in_array('administrator', $roles);
// Remove unnecessary URL alias fields from the user edit form for all users.
$form['path']['#access'] = FALSE;
// Remove Delete account button for all roles expect 'administrator'.
$form['actions']['delete']['#access'] = $is_admin;
}
Original file line number Diff line number Diff line change
Expand Up @@ -205,3 +205,15 @@ body.gin--edit-form .views-exposed-form .select-preact button svg {
.paragraphs-add-dialog .category-title {
display: none;
}

.ck.ck-style-panel .ck-style-grid {
grid-template-columns: 1fr !important;
}

.ck.ck-style-panel .ck-style-grid .ck-style-grid__button {
width: 384px !important;
}

.ck-powered-by-balloon {
z-index: 1000 !important;
}

0 comments on commit 8bbc525

Please sign in to comment.