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:
parent
51290cec1d
commit
c6aef07fb4
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user