frontend: inside public interface, hide hints

This commit is contained in:
nemunaire 2017-11-12 22:14:03 +01:00 committed by Pierre-Olivier Mercier
parent 7b2fdaf0ad
commit e362700031
2 changed files with 10 additions and 2 deletions

View file

@ -135,6 +135,13 @@ angular.module("FICApp", ["ngRoute", "ngSanitize"])
}
});
actMenu();
if (my.team_id == 0) {
angular.forEach($scope.my.exercices, function(exercice, eid) {
angular.forEach(exercice.hints, function(hint, hid) {
$scope.my.exercices[eid].hints[hid].hidden = true;
});
});
}
});
console.log("refresh!");
}