Mark something as graded

This commit is contained in:
Tim Young 2017-08-02 17:07:12 -05:00
parent 55ceeecac1
commit 8134d8cb82

View File

@ -2011,7 +2011,16 @@ namespace EduNetworkBuilder
private void markAsGradedToolStripMenuItem_Click(object sender, EventArgs e) private void markAsGradedToolStripMenuItem_Click(object sender, EventArgs e)
{ {
NB.NotImplimentedMessage(); if (myNetwork.WhatFrom == null) return; //We cannot submit it
if (CurrentUser == null) return; //We need to have a user or we will blow up
if (!CurrentUser.isAdmin) return; //Only Admin can grade it
myNetwork.WhatFrom.IsGraded = true;
PersonProfileForm PPF = new PersonProfileForm(CurrentUser);
PPF.Edit();
UpdateMenu();
} }
} }
} }