Only allow regression testing if we are not a student.
This commit is contained in:
parent
4c25bf4721
commit
3865794d81
@ -2909,7 +2909,10 @@ namespace EduNetworkBuilder
|
|||||||
storeReplayToolStripMenuItem.Visible = false;
|
storeReplayToolStripMenuItem.Visible = false;
|
||||||
saveReplayToolStripMenuItem.Visible = false;
|
saveReplayToolStripMenuItem.Visible = false;
|
||||||
if (OurSettings.ReplayMode == false && ModifierKeys == Keys.Control)
|
if (OurSettings.ReplayMode == false && ModifierKeys == Keys.Control)
|
||||||
OurSettings.LoadReplays();
|
{
|
||||||
|
if(CurrentUser == null || CurrentUser.isAdmin)
|
||||||
|
OurSettings.LoadReplays(); //Only do this if we are an admin
|
||||||
|
}
|
||||||
|
|
||||||
if (OurSettings != null && OurSettings.ReplayMode)
|
if (OurSettings != null && OurSettings.ReplayMode)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user