Full Version: How to implement sharing rules in a custom view
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
For my Schedular module, I need the custom calendar view to respect the sharing rules for the records (the ones that can be set in the 'normal' settings screen). I guessing we have some functions in place for getting the sharing rules, and that it's all stored in a database table. Could someone help me on my way with some pointers on how to implement this?
I guess I should start here
isPermitted is the function that will inform you if a user can execute an action against a record or module.

getNonAdminAccessControlQuery($module, $current_user);

is the function that will give you the necessary SQL to add to your query

keep asking
Thanks! First patch here
looks good :-)