Problem/Motivation

Per @dww in #2813405-90: Add a field to view and edit content's groups (point 8):

If the current user doesn't have permission to add content to a group, the widget should hide those aspects completely, and only show current group memberships in a read-only listing.

Elaborated at #196:

Users should only see the parts of the widget that they can use. E.g. anyone can see if a given node belongs to any of the groups they're members of, but only users with sufficient privs should see the stuff about adding a node to new groups, etc. If I'm not allowed to remove it, I don't need a huge yellow warning. I just need to see the group names without any operation buttons. Hope that clarifies the intention of #90.8

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

dww created an issue. See original summary.

  • dww committed c080870 on 1.0.x
    Issue #3152723 by dww: Hide aspects of the widget that a user doesn't...
dww’s picture

Title: Hide aspects of the widget that a user doesn't have permission to use » Hide aspects of the widgets that a user doesn't have permission to use
Component: User interface » Widgets
Issue tags: +Usability

dww’s picture

Status: Active » Needs review

This has been bothering me for a very long time. 😂 I want to get this in before the next round of releases. I don't see any possible disruption in simply removing UI noise.

dww’s picture

Version: 1.0.x-dev » 2.0.x-dev

The 1.0.x MR is fine. To be safe, trying again with 2.0.x. I'll commit this to both branches once pipelines are all green.

  • dww committed aa27bfa5 on 2.0.x
    task: [#3152723] Hide aspects of the widgets that a user doesn't have...

  • dww committed df04e877 on 1.0.x
    task: [#3152723] Hide aspects of the widgets that a user doesn't have...

dww’s picture

Status: Needs review » Fixed

Merged to 2.0.x and cherry-picked to 1.0.x. Huzzah!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.