Only allow regression testing if we are not a student.

This commit is contained in:
Tim Young 2018-10-05 11:04:19 -05:00
parent 4c25bf4721
commit 3865794d81

View File

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