How to implement sharing rules in a custom view - Printable Version +- CoreBOSBB (https://discussions.corebos.org) +-- Forum: Development (https://discussions.corebos.org/forumdisplay.php?fid=18) +--- Forum: coreBOS Development (https://discussions.corebos.org/forumdisplay.php?fid=4) +--- Thread: How to implement sharing rules in a custom view (/showthread.php?tid=955) |
How to implement sharing rules in a custom view - Guido1982 - 03-19-2018 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? RE: How to implement sharing rules in a custom view - Guido1982 - 03-19-2018 I guess I should start here RE: How to implement sharing rules in a custom view - joebordes - 03-19-2018 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 RE: How to implement sharing rules in a custom view - Guido1982 - 03-19-2018 Thanks! First patch here RE: How to implement sharing rules in a custom view - joebordes - 03-19-2018 looks good :-) |