Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
en:modifications:access-same-role [2014/02/03 13:31] swarnat created |
en:modifications:access-same-role [2014/02/03 13:34] (current) swarnat |
||
|---|---|---|---|
| Line 6: | Line 6: | ||
| Search: | Search: | ||
| - | $roleSubordinates=Array(); | + | <code php> |
| - | + | $roleSubordinates=Array(); | |
| + | </code> | ||
| + | |||
| Replace with | Replace with | ||
| - | $roleSubordinates=Array($roleId); | + | <code php> |
| + | $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> | ||