Table of Contents

Permissions if same role

File: /includes/utils/UserInfoUtil.php

Function: getRoleSubordinates [Line ~2497]

Search:

$roleSubordinates=Array();

Replace with

$roleSubordinates=Array($roleId);

File: /data/CRMMEntity.php

Function: getNonAdminAccessControlQuery [Line ~2329]

Search for:

$this->setupTemporaryTable($tableName, $sharedTabId, $user, $current_user_parent_role_seq, $current_user_groups);

Replace with

$tmpParentRole = substr($current_user_parent_role_seq, 0, strrpos($current_user_parent_role_seq, "::", 3));
$this->setupTemporaryTable($tableName, $sharedTabId, $user, $tmpParentRole, $current_user_groups);