I have a CustomAction menu item
<CustomAction Id="DocumentManagement.DocLibNewToolbar" Location="EditControlBlock" RegistrationType="ContentType" RegistrationId="0x0101002bae451fbd3640fb9bae5df410b4a9a0" Title="Print"> <UrlAction Url="~site/_layouts/ELSActionMenu/PrintListItem.aspx?List={ListId}&ID={ItemId}"/> </CustomAction>
I know that I can write the SPItemEventReceiver class and check if the current user roles meet the criteria. But I want to hide this CustomAction in ListItem ["Authorized"] = TRUE, is this possible?
source share