MantisBT - TestLink
View Issue Details
0007965TestLinkUsers and Rightspublic2017-06-05 12:532019-06-11 17:56
danzone 
fman 
normalmajoralways
closedfixed 
anyany
1.9.16 (2016 Q4) 
1.9.19 (2019 Q1) 
Postgres
any
READY FOR TESTING
0007965: Role management permission - unable to assign user assignment right
In the role definition two permissions are available to manage users: user management and role management. In order to let a leader to add new users to its own test project, role management (and/or users management) permission should be added to "leader" role. Alternatively you should consider to create a new role with these permissions. But none of both solutions works: the menu item "Assign user roles" doesn't appear within the "test project" box. Moreover, if you create a new role copying the standard Testlink "admin" role, you obtain a new role with this permission in place (the menu item "Assign user roles" appears within the "test project" box, but then if apply any modification to this newly created role, the permission seems to disappear - the menu item "Assign user roles" disappears from the "test project" box).
1. set a user account with the leader role within a given test project
2. Go to User/Roles -> Roles section
3. edit the "leader" role and add "Role management" permission
4. login with the user having this modified role in the given test project
5. the menu item "Assign user roles" doesn't appear within the "test project" box
6. edit the "leader" role and add "User management" permission
7. login with the same previous user having this modified role in the given test project
8. the menu item "Assign user roles" doesn't appear within the "test project" box
9. create a new role copying the standard "admin" role and assign this new role to the same previous user (with the leader role)
10. login with the user having this derived "admin" role in the given test project
11. the menu item "Assign user roles" appears within the "test project" box, along with all other admin functionalities
12. modify this new role (for instance: change the name of this new role, or remove an existing permission)
13. login with the user having this modified role in the given test project
14. the menu item "Assign user roles" disappears from the "test project" box
The same issue was detected also in TestLink 1.9.15.
No tags attached.
Issue History
2017-06-05 12:53danzoneNew Issue
2017-06-05 21:01fmanNote Added: 0026448
2017-06-05 21:02fmanQA Team - Task Workflow Status => TBD
2017-06-05 21:02fmanSummaryRole management permission not usable => Role management permission - unable to assign user assignment right
2017-06-05 21:03fmanAssigned To => fman
2017-06-05 21:03fmanStatusnew => acknowledged
2017-06-08 12:16danzoneNote Added: 0026456
2019-06-11 16:21atisneNote Added: 0028923
2019-06-11 17:56fmanQA Team - Task Workflow StatusTBD => READY FOR TESTING
2019-06-11 17:56fmanStatusacknowledged => closed
2019-06-11 17:56fmanResolutionopen => fixed
2019-06-11 17:56fmanFixed in Version => 1.9.19 (2019 Q1)

Notes
(0026448)
fman   
2017-06-05 21:01   
use following workaround (you need to be able to access the db)
add on role_rights table right 23 and 15 for the new role you will create
(0026456)
danzone   
2017-06-08 12:16   
Thanks a lot! I've just applied your workaround and now everything works fine: I created a new role (test manager) and gave it role manager and user manager permissions, and users with this role now are able to assign roles within their projects.
(0028923)
atisne   
2019-06-11 16:21   
Manually, Adding "role assignment" roles (15 and 23) solve the reported issue.
But, this shouldn't be done automatically?

I noticed that if I revoke the rights 'User management' and 'Role management' of the role with the web UI, the four rights (13, 14, 15 and 23) are removed in the table role_rights. But, if I add the rights 'User management' and 'Role management' with the web UI, only the rights 13 and 14 are added in the table.

I seems to not be consistent.