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
1 changed files with 4 additions and 1 deletions

View File

@ -2909,7 +2909,10 @@ namespace EduNetworkBuilder
storeReplayToolStripMenuItem.Visible = false;
saveReplayToolStripMenuItem.Visible = false;
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)
{