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

(bug) unable to reserve a machine with payment on site

This commit is contained in:
Sylvain 2022-11-17 10:56:03 +01:00
parent 51290cec1d
commit c6aef07fb4
2 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,7 @@
# Changelog Fab-manager
- Fix a bug: unable to reserve a machine with payment on site
## v5.5.2 2022 November 16
- Fix a bug: unable to export statistics

View File

@ -824,8 +824,8 @@ Application.Directives.directive('cart', ['$rootScope', '$uibModal', 'dialogs',
($scope.user.id === $rootScope.currentUser.id && amountToPay > 0)) {
return payOnline(items);
} else {
if (AuthService.isAuthorized(['admin', 'manager'] && $scope.user.id !== $rootScope.currentUser.id) ||
(amountToPay === 0 && !hasOtherDeadlines())) {
if ((AuthService.isAuthorized(['admin', 'manager']) && $scope.user.id !== $rootScope.currentUser.id) ||
(amountToPay === 0 && !hasOtherDeadlines())) {
return payOnSite(items);
}
}