This page demonstrates how to extend the record-level security functionality with the power of the OnGetCustomRecordPermissions event.
Assume we have a small company with several sales departments. All users of our application are sales managers, which work in one of these departments. Each such user can work as an ordinary manager or as a head manager of the department. The company structure is as follows.
Department | Eastern Region Sales | Western Region Sales |
---|---|---|
Head manager | gloria | jack |
Ordinary managers | john, mike | david, lisa |
Our challenge is to grant privileges in the following way:
Click a link in the table above to see the page under the corresponding user. Click the button to see the event handler code.