Hot answers tagged

2

If you want to display a content to the user only with 'Full Control' permission level use the below snippet <Sharepoint:SPSecurityTrimmedControl runat="server" PermissionsString="FullMask"> <div id="s4-ribbonrow" > </div> </Sharepoint:SPSecurityTrimmedControl> Different base permissions EmptyMask : Has no permissions on the Web ...


1

Here's the easiest, simplest way I could come up with... if (someCondition == true) { $("#Ribbon\\.ListForm\\.Edit\\.Commit\\.Publish-Large").on("click",function(e){ e.preventDefault(); }).addClass("ms-cui-disabled"); }



Only top voted, non community-wiki answers of a minimum length are eligible