<div dir="ltr">Patrick, I think it would be better to create an issue in <a href="http://code.vtiger.com">code.vtiger.com</a> and add your fix in the description. In my opinion, there is a better chance to get it fixed there.<div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Saludos<div><br></div><div>Rubén</div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, May 24, 2022 at 6:11 PM Patrick Allen <<a href="mailto:alexander.allenz@gmail.com">alexander.allenz@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><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>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a></blockquote></div>