Hide "add network to schoolwork" menu item if we are not admin.
This commit is contained in:
parent
ea5f038157
commit
166321b0f0
@ -399,6 +399,10 @@ namespace EduNetworkBuilder
|
|||||||
classSetupToolStripMenuItem.Visible = false;
|
classSetupToolStripMenuItem.Visible = false;
|
||||||
this.Text = "EduNetworkBuilder : " + CurrentUser.FullName;
|
this.Text = "EduNetworkBuilder : " + CurrentUser.FullName;
|
||||||
}
|
}
|
||||||
|
if (CurrentUser == null || !CurrentUser.isAdmin)
|
||||||
|
addToClassworkToolStripMenuItem.Visible = false;
|
||||||
|
else
|
||||||
|
addToClassworkToolStripMenuItem.Visible = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void UpdateLinks()
|
public void UpdateLinks()
|
||||||
|
Loading…
Reference in New Issue
Block a user