fixed error with limiting it to teachers only