I created a custom/modules/Accounts/views/view.list.php
To override function listViewProcess()
I use [custom_where] = “or …” and i can get more some speify records for all user.
Normal user can see more some records but can not click to access it (row display black text), because permission module Accounts is only Owner.
How I can custom code permission to access these records.
I tried insert “link navigator” use process_record follow your guideline. It worked successully. But can not redirect to detail view becase permission role. (user does not have permission to view).
With permission by role, more issues will appears.
I think i need modify root code to solve all permission. In root code to check permission with records, i need add custom code to check specify permission (beside check owner, check group).
Can you suggest me where the code file (function) handle these?
And can’t you simply adjust the Roles and permissions so that those users get access? The security system has a certain coherence, rather than changing the core code for how it works, it’s better to just set permissions according to your needs. It’s very powerful and flexible.
I try to create a module Organization Chart. Data access permission depend position of person in Org Chart.
With Org Chart, team leader can manage data of salers, manager can manage data of team leaders … may be reach N level.
In Saleforce, they have Role hierarchy, and customers can created Org Chart on that. Private Groups only for specifically case
In SuiteCRM, I alway need use group to setup manage records, and too difficult to handle that when my groups grow hundreds. And i only work with only 2 level: salers and team managers, impossible with N level
There are inheritance properties in Security Groups that allow you to accommodate more complex structures. And sometimes you need bits of custom code to facilitate common tasks.
Because Security Groups allow you to accommodate more complex structures, group need add to the specify record. And when groups grow hundreds+, hard to handle relationship between groups (employee/manager in groups) và records.