Relationships disable toolbar

Hi How to disabled relationships toolbar because one business logic can't do (add update delete unlock...) So I need disabled relationships toolbar.
  • You can't disable the toolbar, but you can have different security for source item and each relationship of this item type. Just go to relationship item type untick the "Use Src Access" checkbox and manage the Permission and Can Add based on your security logic
  • For example I have a workflow  first  activity relationships can add second and third activity relationships can't add. I don't know what timing can I judgment second and third activity  relationships can't add ,if  use Permission and Can Add?      
  • You will need to write a method code for this scenario.
    1. To "block" the Add action you can try to add Server Method onBeforeAdd of the your relationship and check current activity of the WF of "source" item - if on this activity user not allowed to add - you can throw an error
    2. For other actions (update\delete):
      1. you can add method to specific activity. When WF  hitting this activity, you can assign specific permission to all existing relationships, on managed Item, with Permission ID that will be empty of any identities or only those that allowed to change existing relationships.
      2. if you are hitting activity that is "open" for update you need to set permission ID to one that allow all relevant user to update the relationship data
    I assume that you have only one active activity, if this is not a case, my proposal (second bullet) will not work as expected. So you will need to think about another events to put your methods on.