1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-17 06:52:27 +01:00

[bug] members cannot view available trainings slots

This commit is contained in:
Sylvain 2020-10-23 13:08:52 +02:00
parent 2d1a2d81dd
commit a2d885f447
2 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@
- Check postgreSQL status before compiling assets
- Fix a bug: unable to set libraries locales to their default values (en-us)
- Fix a bug: unable to display details about a closed period
- Fix a bug: members cannot view available trainings slots
## v4.6.1 2020 October 21

View File

@ -374,7 +374,7 @@ Application.Controllers.controller('ReserveTrainingController', ['$scope', '$sta
*/
const initialize = function () {
if ($scope.currentUser.role !== 'admin') {
return Member.get({ id: $scope.currentUser.id }, function (member) { $scope.ctrl.member = member; });
Member.get({ id: $scope.currentUser.id }, function (member) { $scope.ctrl.member = member; });
}
// we load the availabilities from a callback function of the $scope.eventSources, instead of resolving a promise
// in the router because this allows to refetchEvents from fullCalendar API.