<div dir="ltr"><div>I found that in role configuration if I choose that a role can assign records to user having the same role or subordinates it doesnt works as expected. <br></div><div><br></div><div>With this option, the user can assign records to every user in different roles but in the same Level and subordinated of each role.</div><div><br></div><div>This happened because this configuration calls the function getSameLevelUsersWithSubordinates(). I modify this function with the next code to works well. I dont know why vtiger put this configuration and also I dont know how to request a merge or something.  I show here the modifications if someone need it.<br></div><div><br></div><div><br></div><div> public function getSameLevelUsersWithSubordinates(){<br>   $currentUserRoleModel = Settings_Roles_Record_Model::getInstanceById($this->getRole());<br>   $sameLevelRoles = $currentUserRoleModel->getSameRoles();<br>               //$sameLevelRoles = $currentUserRoleModel->getSameLevelRoles();<br>    <br>   $sameLevelUsers = $this->getAllUsersOnRoles($sameLevelRoles);<br>   $subordinateUsers = $this->getRoleBasedSubordinateUsers();<br>   foreach ($subordinateUsers as $userId => $userName) {<br>     $sameLevelUsers[$userId] = $userName;<br>   }<br>   return $sameLevelUsers;<br>      }</div></div>