Skip to content

Commit

Permalink
Fixed #1145 Restricting tools in XRMtoolbox Library
Browse files Browse the repository at this point in the history
  • Loading branch information
MscrmTools committed May 23, 2022
1 parent cf18665 commit 683b3f8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions XrmToolBox/New/NewForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,14 @@ private void StartPage_OpenPluginRequested(object sender, OpenFavoritePluginEven

private UserControl DisplayPluginControl(Lazy<IXrmToolBoxPlugin, IPluginMetadataExt> plugin, bool displayConnected = true)
{
var isc = new ItSecurityChecker();
isc.LoadAllowedPlugins();
if (!isc.IsPluginAllowed(plugin.Metadata.PluginType))
{
MessageBox.Show(this, "This plugin is not allowed by your IT administrators. Please contact them", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
return null;
}

Guid pluginControlInstanceId = Guid.NewGuid();
UserControl pluginControl = null;
try
Expand Down

0 comments on commit 683b3f8

Please sign in to comment.