/**
  * This method controls what happens when you move to /note/editSave in your app.
  * Edits a note (performs the editing after form submit).
  * POST request.
  */
 public function editSave()
 {
     // All methods inside this controller are only accessible for admins (= users that have role type 7)
     Auth::checkAdminAuthentication();
     materialModel::updateMaterial();
     Redirect::to('material/index/0');
 }