Mantis Bugtracker          
testlink.org

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007965TestLinkUsers and Rightspublic2017-06-05 12:532018-01-02 22:16
Reporterdanzone 
Assigned Tofman 
PrioritynormalSeveritymajorReproducibilityalways
StatusacknowledgedResolutionopen 
PlatformanyOSanyOS Version
Product Version1.9.16 (2016 Q4) 
Fixed in Version 
Summary0007965: Role management permission - unable to assign user assignment right
DescriptionIn 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).
Steps To Reproduce1. 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
Additional InformationThe same issue was detected also in TestLink 1.9.15.
TagsNo tags attached.
Database (MySQL,Postgres,etc)Postgres
Browserany
PHP Version
TestCaseID
QA Team - Task Workflow StatusTBD
Attached Files

- Relationships

-  Notes
(0026448)
fman (administrator)
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 (reporter)
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.

- Issue History
Date Modified Username Field Change
2017-06-05 12:53 danzone New Issue
2017-06-05 21:01 fman Note Added: 0026448
2017-06-05 21:02 fman QA Team - Task Workflow Status => TBD
2017-06-05 21:02 fman Summary Role management permission not usable => Role management permission - unable to assign user assignment right
2017-06-05 21:03 fman Assigned To => fman
2017-06-05 21:03 fman Status new => acknowledged
2017-06-08 12:16 danzone Note Added: 0026456



Copyright © 2000 - 2018 MantisBT Team
Powered by Mantis Bugtracker