SPWebApplication.AllowAccessToWebPartCatalog property
SharePoint 2013
Gets or sets a value that indicates whether sites in the Web application can use Web Parts from the global catalog.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Property value
Type: System.Booleantrue if sites can use Web Parts from the global Web Part Catalog; otherwise, false. The default value is true.