The example at [Hide a standard 'out of the box' button based on a users security roles] shows how to show/hide a button based on if a user has global delete permission of contacts, but how do I have it check the 'Write' permission of just the entity that's open instead of a global permission? I know to change PrivilegeType to 'Write' but what do I set PrivilegeDepth to? Do I do anything with AppliesTo? The button I'm trying to show/hide is on the main form and not a subgrid.
*This post is locked for comments