Option to combine shortcut sets for users with multiple roles

Created on 3 June 2020, over 4 years ago
Updated 23 February 2024, 7 months ago

If a user has multiple roles, this module just uses the shortcut set which corresponds to the highest user role's weight. This behavior makes it challenging to deal with multiple roles per user. I would rather expect that the menus of the different roles would be combined.

This is a follow up of the D7 issue: #2172003: Combine menus for multiple roles β†’

✨ Feature request
Status

Active

Component

Miscellaneous

Created by

πŸ‡©πŸ‡ͺGermany droprocker

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ͺπŸ‡¨Ecuador jwilson3

    From upstream drupal core issue #1122816-39: Assign shortcut set to role β†’ :

    I think the merge solution is not a good one. You can end up with two many links and there is no way to decide the order, the way you do with a menu in Drupal -what it is, in the end, the shortcuts menu.

    I think the solution would be having a select element with all the roles a user has and seeing the shortcuts for each role separately. The roles could be ordered by weight or by alphabetical order (perhaps in an environment with many rols the alphabetical is clearer). Of course, the default set of shortcuts would be the ones belonging to the first role in the select element.

    This is a valid concern. I think I agree.

    We already have a dropdown on each User's Shortcuts tab. So the effort would be fairly low to add a feature that filters the list appropriately to only show shortcut sets that they're allowed to use by role. It might already do this, need to look at the code to verify.

  • πŸ‡ΊπŸ‡ΈUnited States todea

    In Drupal 7 we used the Quickbar module for this type of role based navigation and shortcuts. Quickbar allowed the admin to control which toolbar a role would get by using the built-in weights and drag/drop. (screenshot attached)

    Being able to control the assignment of shortcuts this way would be helpful.

Production build 0.71.5 2024