Skip to content

[Bug] If you are adding a role to a user, pick an organization, then change to partner, without changing the organization, it picks the partner with the same ID. They should be forced to pick from the partner list #5565

@ruestitch

Description

@ruestitch

Summary

Force superuser to actively pick a partner if partner is the role.

Why?

Mitigate potential for mis-assignment

Details

Reproduction

You do have to go out of your way to make this happen

sign in as superadmin@example.com
pick users
New user
fill in a new user name and email
Choose organization from the role type
Choose a resource
Switch to partner
Save (without changing the resource)

The user is given the role partner with the partner who has the resource ID of the organization that was initially chosen.

Desired behaviour

Clear the resource if the role type is changed

Criteria for completion

  • behaviour as described
  • tests that confirm the behaviour
  • no user guide update required

Metadata

Metadata

Assignees

No one assigned

    Labels

    Good First IssueSuitable for users that are newer or less experienced

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions