Membership assignment won't work if a user doesn't have any organization.

Description

Steps to reproduce:

1) Created user "u1" and "u2" and "manager"
2) Assigned "u2" to any organization
3) Created a Role called "Manager" for this "manager" user with the following permissions:
Control Panel->User Groups->Access in Control Panel
Control Panel->User Groups->View
Trunk and 6.1.x :
Portal->Users and Organizations->User Group->View
4) Added permission per resource to role "Manager"
ugroup - Assign Members
ugroup - View
5) Created a UserGroup called "ugroup"
6) Impersonated "manager"
Result: If "manager" goes to Control Panel->User Groups and selects "Assign Members" only the "u2" user are displayed.

Activity

Show:

Pani GuiJuly 18, 2012 at 7:18 PM

PASSED Manual Testing following the steps in the description.

Fixed on:
Tomcat 6.0 + MySQL 5. Portal 6.0.x GIT ID: d734830f0dfd5f67dd12e34a4f045b38072a41a0.

Pani GuiJuly 12, 2012 at 8:25 PM

PASSED Manual Testing following the steps in the description.

Reproduced on:
Tomcat 6.0 + MySQL 5. 6.0.12 EE.
Tomcat 7.0 + MySQL 5. 6.1.10 EE GA1.

Only display the user who is a member of an organization.

Fixed on:
Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: 912dbdea9dbb5dcfe60c368360ee824cdb9af1f9.
Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: fdf9a95288e6614ddb24a528c0bf291e0990a1e8.

There is no user.

Michael SaechangJuly 10, 2012 at 4:36 PM

Committed on:
Portal 6.1.x CE GIT ID: 932cb4c1d230032cd1a6d9781d12a52e170577b2.
Portal 6.2.x GIT ID: 96dabfac7a61c05a56a6cfdca09e6af4987fb088.

Miguel Ángel Pastor OlivarJuly 9, 2012 at 5:58 AM

For reference the expected result should be that manager should not be able to view (nor assign) any user because:
1) He does not manage any organization (if he did he would see the users of that org)
2) He does not have the Portal > User > View permissions (if he did he would see all users)

Fixed

Details

Assignee

Reporter

Branch Version/s

6.1.x
6.0.x

Backported to Branch

Committed

Fix Priority

4

Components

Affects versions

Priority

Zendesk Support

Created July 3, 2012 at 8:46 AM
Updated June 24, 2023 at 3:56 PM
Resolved July 18, 2012 at 9:46 AM