Hide delete, give and save buttons if we are not the teacher.

This commit is contained in:
Tim Young 2017-08-03 12:01:38 -05:00
parent 69df135025
commit c31133f786

View File

@ -527,6 +527,12 @@ namespace EduNetworkBuilder
btnHWSave.Visible = true; btnHWSave.Visible = true;
} }
else
{
btnHWDelete.Visible = false; //Only the teacher can delete the homework
btnHWGive.Visible = false;
btnHWSave.Visible = false;
}
btnLaunch.Visible = true; btnLaunch.Visible = true;
} }