Optionally display a text instead of hiding flags for restricted users

Created on 22 May 2020, over 4 years ago
Updated 15 April 2023, almost 2 years ago

Hi,

Allowing admin to setup a text to be displayed for a user when he does not have enough permission to flag/unflag a content is a +1 for this awesome module.

Use case example:

A flag (Bookmark) is added to the article content type and only authenticated users are allowed to Bookmark/Unbookmark an article.

When an anonymous user will view an article, the flag (Bookmark) will be hidden from display as he does not have enough permission to flag/unflag it. (Default Behavior)

Why not display a text in place of that flag, something like: "Login to Bookmark this article"

This text is optional and can be set by admin from flag settings page.

Thank you,

Feature request
Status

Needs review

Version

4.0

Component

Flag core

Created by

🇱🇧Lebanon C.E.A

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