MantisBT - TestLink
View Issue Details
0001903TestLinkUsers and Rightspublic2008-11-26 13:392009-01-20 05:19
Ocean 
schlundus 
normalminoralways
closedfixed 
1.8 RC 1 
1.8 RC 2 
Internet Explorer 7
5.2.6
0001903: Can't assign one user to one project with <no rights>
I can't assign one user to one project with <no rights>, it will change back <inherited>xxx after I click "Update" in Test Project roles. I want to keep somebody can not see information of one specific project.
1. Create a new user named A with leader role
2. Create a new project named B
3. Change Test Project to B to assign roles in Assign Test Project roles
4. Assign user A to <no rights>
5. Click "Update"

A's role will be <Inherited>leader.
No tags attached.
has duplicate 0002065closed schlundus Test Project Level permissions display issue 
Issue History
2008-11-26 13:39OceanNew Issue
2008-11-26 13:39OceanBrowser => Internet Explorer 7
2008-11-26 13:39OceanPHP Version => 5.2.6
2008-11-26 23:37schlundusStatusnew => assigned
2008-11-26 23:37schlundusAssigned To => schlundus
2008-11-27 03:14schlundusStatusassigned => acknowledged
2008-11-27 03:49schlundusStatusacknowledged => resolved
2008-11-27 03:49schlundusFixed in Version => next development 1.8 RC 2
2008-11-27 03:49schlundusResolutionopen => fixed
2008-11-27 03:49schlundusNote Added: 0004711
2009-01-20 05:19mhavlatStatusresolved => closed
2009-02-06 01:46schlundusRelationship addedhas duplicate 0002065

Notes
(0004711)
schlundus   
2008-11-27 03:49   
Bug while reading the rights of a role caused by a optimization done by me. I've forgot the "<no rights>"-Role which has NO rights (-: So my join didn't work:

Fix role.class.php
replace
$query .= " JOIN role_rights b ON a.id = b.role_id JOIN rights c ON b.right_id = c.id ";
with
$query .= " LEFT OUTER JOIN role_rights b ON a.id = b.role_id LEFT OUTER JOIN rights c ON b.right_id = c.id ";