permission to view a flag's status, but not use it

Created on 3 December 2012, almost 12 years ago
Updated 10 April 2023, over 1 year ago

Problem/Motivation

Currently, each flag only provides two permissions: flag and unflag. For a non-global flag, users may only view if they have flagged the entity or not. For global flags, all users that may flag or unflag the entity may see the flag.

Proposed resolution

Create a "view" permission for each flag.

Remaining tasks

  • Define the logic behind the "view" permission. Does view permission grant the ability to see a flag's flaggings?
  • Define what UI changes are necessary.
  • Define architectural changes if necessary.

User interface changes

Probably, TBD.

API changes

TBD.

Data model changes

TBD.

✨ Feature request
Status

Needs review

Version

4.0

Component

Flag core

Created by

πŸ‡ͺπŸ‡ΈSpain Alcaparra

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.

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

    Flag anonymous seems to be a good solution to this problem in my testing.
    @Murz, thanks for the tip.

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

    Another way to achieve this is to give flag and unflag permissions to all the roles, and then add a new template suggestion for the flag if the user has the role that should only have the missing "view" permission. In your new template print only the {{ title }}. This will handle at least the ajax link flagging.

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

    @awolfey
    Clever! I like it. I'm not sure I'm going to use it, but you just made me smarter.

Production build 0.71.5 2024