Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
en:modifications:access-same-role [2014/02/03 13:31]
swarnat
en:modifications:access-same-role [2014/02/03 13:34] (current)
swarnat
Line 13: Line 13:
 <code php> <code php>
 $roleSubordinates=Array($roleId);​ $roleSubordinates=Array($roleId);​
 +</​code>​
 +
 +==== File: /​data/​CRMMEntity.php ====
 +
 +=== Function: getNonAdminAccessControlQuery [Line ~2329] ===
 +
 +Search for:
 +<code php>
 +$this->​setupTemporaryTable($tableName,​ $sharedTabId,​ $user, $current_user_parent_role_seq,​ $current_user_groups);​
 +</​code>​
 +
 +Replace with
 +<code php>
 +$tmpParentRole = substr($current_user_parent_role_seq,​ 0, strrpos($current_user_parent_role_seq,​ "::",​ 3));
 +$this->​setupTemporaryTable($tableName,​ $sharedTabId,​ $user, $tmpParentRole,​ $current_user_groups);​
 </​code>​ </​code>​