In SharePoint 2010, I have custom Web Parts. In the Web Part Gallery, I grant read permissions to certain users to let them add these web parts to a page. Within CreateChildControls, how can I detect if the current user is able to read the current web part?
Basically, I am looking for the equivalent of the DoesUserHavePermissions method (from SPList) for the current web part.