I have a CustomAction menuItem
<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 a SPItemEventReceiver class and check if the current users roles match the criteria. But I want to hide this CustomAction on ListItem["Authorized"] =TRUE, is this possible?