Hide "add network to schoolwork" menu item if we are not admin.

This commit is contained in:
Tim Young 2017-07-29 18:55:07 -05:00
parent ea5f038157
commit 166321b0f0

View File

@ -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()