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:
parent
5d6dc2a142
commit
677b796d32
@ -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
|
||||
|
@ -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; });
|
||||
}
|
||||
};
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user