From 3865794d812842e2eb49a59de1883fef4be7cbe0 Mon Sep 17 00:00:00 2001 From: Tim Young Date: Fri, 5 Oct 2018 11:04:19 -0500 Subject: [PATCH] Only allow regression testing if we are not a student. --- EduNetworkBuilder/NetworkBuilder.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/EduNetworkBuilder/NetworkBuilder.cs b/EduNetworkBuilder/NetworkBuilder.cs index 655b847..fac4495 100644 --- a/EduNetworkBuilder/NetworkBuilder.cs +++ b/EduNetworkBuilder/NetworkBuilder.cs @@ -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) {