working on pushing changes back

This commit is contained in:
Tim Young 2017-08-02 09:34:21 -05:00
parent aaf8c89455
commit 36947a9bff

View File

@ -1974,7 +1974,17 @@ namespace EduNetworkBuilder
private void updateClassworkToolStripMenuItem_Click(object sender, EventArgs e) private void updateClassworkToolStripMenuItem_Click(object sender, EventArgs e)
{ {
if (CurrentUser == null) return;
if (!CurrentUser.isAdmin) return;
SchoolworkClass SC = myNetwork.WhatFrom;
if (SC == null) return;
SC.theProject = myNetwork.Clone();
PersonProfileForm PPF = new PersonProfileForm(CurrentUser);
CurrentUser = PPF.Edit();
UpdateMenu();
} }
private void submitHomeworkToolStripMenuItem_Click(object sender, EventArgs e) private void submitHomeworkToolStripMenuItem_Click(object sender, EventArgs e)