Custom permission for switcher

Created on 8 February 2017, almost 8 years ago
Updated 15 August 2024, 5 months ago

Problem/Motivation

I would like users to be able to see the colourised toolbar, but not the switcher.

Proposed resolution

Add a new permission for the switcher in the toolbar
Upgrade path to add to roles that have any existing EI permission
Use permission in ToolbarHandler::toolbar

Remaining tasks

Agreement
Code
Tests

Original report

I'd like to request a custom permission so that I could allow my authenticated users to see the indicator bar, but not see the switcher button. It would be helpful if they had the color as the visual cue, but they don't need to see "Production - Master."

The module's great! I inherited a site that's using it and I just realized that the switcher tells you which branch you're on!

Thanks!

✨ Feature request
Status

Active

Version

4.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States capysara

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.

Production build 0.71.5 2024