From 166321b0f0bafba4209f1614ff39c0b72d6214a1 Mon Sep 17 00:00:00 2001 From: Tim Young Date: Sat, 29 Jul 2017 18:55:07 -0500 Subject: [PATCH] Hide "add network to schoolwork" menu item if we are not admin. --- EduNetworkBuilder/NetworkBuilder.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/EduNetworkBuilder/NetworkBuilder.cs b/EduNetworkBuilder/NetworkBuilder.cs index 39bc27b..b534f97 100644 --- a/EduNetworkBuilder/NetworkBuilder.cs +++ b/EduNetworkBuilder/NetworkBuilder.cs @@ -399,6 +399,10 @@ namespace EduNetworkBuilder classSetupToolStripMenuItem.Visible = false; this.Text = "EduNetworkBuilder : " + CurrentUser.FullName; } + if (CurrentUser == null || !CurrentUser.isAdmin) + addToClassworkToolStripMenuItem.Visible = false; + else + addToClassworkToolStripMenuItem.Visible = true; } public void UpdateLinks()