Control what your users can access and save time, money, and frustrations. Lock down sensitive data in 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.
#1775 - Security groups from related Records
Hi Jason, we have noticed an issue with a clients system which has a lot of relate fields. if we create a record , save it and then select relate records everything is OK. but if we populate the relate fields prior to creation/save then all of the security groups from the related records are copied to the new record ? is this the correct behaviour ?
Suite 7.8.5 SecSuite 3.1.0
5 years ago
Yes, as long as the Inherit from Parent option is checked this behavior would definitely be triggered. It also pulls from relate fields on the module. If this is undesired you can change that via code by editing /modules/SecurityGroups/SecurityGroup.php. Look for the inherit_parent function and uncomment the if statement around the foreach($focus->field_name_map... code block.
5 years ago
Hi ,
We have tried this and its made no difference , just to confirm it was this line
Any ideas please ?
Thanks
5 years ago
My mistake. That should remain commented out in order to catch all relate fields. For those relate fields, is the type set to relate and is the id_name value set in the field vardef? If so, it will trigger that section of code so that the relate field security groups get copied to the new field.