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:
parent
2d1a2d81dd
commit
a2d885f447
@ -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
|
||||
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user