Optionally show message on accessible protected entities

Created on 21 January 2025, about 2 months ago

Problem/Motivation

Users that were granted access to a protected entity, may not know / or remember that the entity is password protected or why they have access.

For that reason, I think it would make sense to add a setting to show a message that informs the user about the password protection and why the user is granted access.
That might be for example:

  • Because of permission "Bypass password protection"
  • Because the user entered the password correctly before

Even for admins and other people managing the pages that will be helpful, because they may otherwise think the password protection isn't working correctly.
Users that entered the password weeks ago may not remember they did and that this isn't a public entity...

Hope you agree that this would make sense. Maybe as a field formatter setting, to be most flexible?

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

1.1

Component

Code

Created by

🇩🇪Germany Anybody Porta Westfalica

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

Comments & Activities

  • Issue created by @Anybody
  • 🇩🇪Germany Anybody Porta Westfalica
  • 🇫🇷France Grimreaper France 🇫🇷

    Hi,

    Thanks for your suggestion.

    I wrote this module years ago and I am not using it on projects so I may wrote mistakes about its architecture, sorry.

    I like the idea of the field formatter so people can control how it is displayed.

    Should a new service type be introduced to let people adapt the message? or such customization be done in custom field formatter on their projects?
    Or maybe it is the current services to extend with one or more new dedicated to get the access message:

    - Because of permission (Because of permission "Bypass password protection" may be confusing depending on the user)
    - Because you already entered the global password correctly
    - Because you already entered the password correctly for all @bundle
    - Because you already entered the password correctly

  • 🇩🇪Germany Anybody Porta Westfalica

    Hi @grimreaper,

    well the module is definitely super helpful and a great one! :)

    I'd add the functionality to the existing Formatter (as new setting) and maybe a service makes sense to determine the reason and its message. Still I'm not aware of the internals, maybe the service isn't even needed... how do you think it could be solved best and most easily?

Production build 0.71.5 2024