Students cannot change due date, admins can

This commit is contained in:
Tim Young 2017-08-02 15:28:02 -05:00
parent 538490087d
commit 7265b07e0e

View File

@ -278,6 +278,7 @@ namespace EduNetworkBuilder
{
btnGenerateStudentFiles.Visible = true;
btnImportStudents.Visible = true;
dtpHWDue.Enabled = true;
TreeNode Node;
@ -312,6 +313,7 @@ namespace EduNetworkBuilder
if (CurrentUser == null) return;
btnGenerateStudentFiles.Visible = false;
btnImportStudents.Visible = false;
dtpHWDue.Enabled = false;
TreeNode Top = CurrentUser.WorkTree();
if (Top != null)
tvClasswork.Nodes.Add(Top);