Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to implement sharing rules in a custom view
#1
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?
Reply
#2
I guess I should start here
Reply
#3
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
Joe
TSolucio
Reply
#4
Thanks! First patch here
Reply
#5
looks good :-)
Joe
TSolucio
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)