Affects Version/s: 7.1.X, Master
Component/s: User Management > Roles
Backported to Branch:Committed
Sprint:U&SM | Sprint 11, U&SM | S02 Sprint 12
Git Pull Request:
Steps to Reproduce:
- Add a user, a site, and assign that user as a member of the site.
- Assign that user the "Administrator" Site Role for the created site
- Assert that the "Administrator" role appears in the list view for Edit User > Roles > Site Roles
- Find that group in the Group_ database table and change the value of the "site" column to 0
- In Server Administration, execute the "Clear the database cache." action.
- Return to the Edit User > Roles > Site Roles view
The "Administrator" role assignment is not visible for the group that is no longer a site
The "Administrator" role assignment is visible for the group that is no longer a site
NEW STORY DESCRIPTION:
Since Commerce is using Site role assignments with non-site groups, it makes sense to distinguish between site role assignments to groups that are sites and groups that are not sites. Users Admin will currently display all site role assignments, irrespective of whether the corresponding group is a site or not. This difference can be observed when selecting a group from the site selector popup in the "Roles" section of the edit user view. If you search the popup list. only groups that are sites will be listed. Otherwise, all groups that the user is a member of will display, site or not.
1. In the Site Role selection popup (accessible from Users Admin > Edit User > Roles > "Select" inline with "Site Roles"), only display groups that are also sites.
2. In the list of Site Roles assigned to the user, only show Site Role assignments whose corresponding groups are sites.
OLD STORY DESCRIPTION:
Commerce 1.1 adds support for Accounts and requires the ability to configure Account Roles. Currently, the Roles widget is hardcoded to support Regular Roles, Site Roles, and Organization Roles types.
To properly support Account Roles, the Roles widget needs to be extensible to support new types of roles.