Skip to content

Group Role dialog doesn't allow users "with admin" option to add other users #9450

@TownCube

Description

@TownCube

Describe the bug

The "Group Role" dialog doesn't allow users who have been granted "with admin" to add other members to the role as the + icon is not displayed.

To Reproduce

Steps to reproduce the behavior:

  1. Expand Servers > Server > Login/Group Roles
  2. Right click on a role and choose "Properties"
  3. Switch to the "Membership" tab
  4. No plus icon is not shown to allow a user "with admin option" to add new members.

Expected behavior

Users granted "with admin" should see the + icon to allow adding other members to the role.

Error message

The user can't add role members because the plus icon isn't shown. However if the user "with admin" option attempts to grant "with admin" to another user then they incorrectly get the error "The current user does not have permission to update the role."

Screenshots

N/A

Desktop (please complete the following information):

  • OS: Fedora Linux 43
  • pgAdmin version: 9.10
  • Mode: Server
  • Browser (if running in server mode): Chromium
  • Package type: Python

Additional context

The role UI only allows editing if the user is a super user or has the "create role" permission, however if the user is a member of the role "with admin" option, they don't need either of these to be allowed to add new members to the role.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions