frontend: inside public interface, hide hints
This commit is contained in:
parent
7b2fdaf0ad
commit
e362700031
2 changed files with 10 additions and 2 deletions
|
@ -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!");
|
||||
}
|
||||
|
|
Reference in a new issue