1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-19 13:54:25 +01:00

fix bug: user validation required alert is displayed and disappears instantly

This commit is contained in:
Du Peng 2022-07-27 13:16:51 +02:00
parent 5d6dc2a142
commit 677b796d32
4 changed files with 4 additions and 0 deletions

View File

@ -9,6 +9,7 @@
- Usage of the rails logger instead of printing to standard output
- Optionnaly add a username column to the member list (#375)
- Improved attached ICS file texts, in reservations emails
- Fix a bug: user validation required alert is displayed and disappears instantly
- Fix a bug: canceled trainings are still shown on the public profile page
- Fix a bug: prevent same slot booking feature ignores canceled reservations
- Fix a bug: wrong currency on invoices files

View File

@ -647,6 +647,7 @@ Application.Controllers.controller('ReserveMachineController', ['$scope', '$tran
});
if ($scope.currentUser.role !== 'admin') {
$scope.ctrl.member = $scope.currentUser;
return Member.get({ id: $scope.currentUser.id }, function (member) { $scope.ctrl.member = member; });
}
};

View File

@ -558,6 +558,7 @@ Application.Controllers.controller('ReserveSpaceController', ['$scope', '$transi
*/
const initialize = function () {
if ($scope.currentUser.role !== 'admin') {
$scope.ctrl.member = $scope.currentUser;
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

View File

@ -345,6 +345,7 @@ Application.Controllers.controller('ReserveTrainingController', ['$scope', '$tra
*/
const initialize = function () {
if ($scope.currentUser.role !== 'admin') {
$scope.ctrl.member = $scope.currentUser;
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