Control what your users can access and save time, money, and frustrations. Lock down sensitive data in SugarCRM or SuiteCRM to specific groups or teams. Supports unlimited assigned users, unlimited group assignments to records, custom layouts for each group, login/sudo capabilities and much more.
There's a function in /modules/SecurityGroups/SecurityGroup.php called getUserSecurityGroups. If you pass the current user ID to it it will return all groups that the user is assigned to. You can then loop through those to see if in G1.
7 years ago
actually i mean the current user
7 years ago
There's a function in /modules/SecurityGroups/SecurityGroup.php called getUserSecurityGroups. If you pass the current user ID to it it will return all groups that the user is assigned to. You can then loop through those to see if in G1.
7 years ago
Thank you Jason. I did it with
...
7 years ago
Perfect. Did you mean SecurityGroup::getUserSecurityGroups($user_id)?
Got it to work as needed?
7 years ago
exactly. Thanks. This solved me an issue,
7 years ago
Great! I'll close this out for now.