diff --git a/CHANGELOG.md b/CHANGELOG.md index 7daf78ee5..c19084995 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/app/frontend/src/javascript/directives/cart.js b/app/frontend/src/javascript/directives/cart.js index 4e98469cb..56bc893ab 100644 --- a/app/frontend/src/javascript/directives/cart.js +++ b/app/frontend/src/javascript/directives/cart.js @@ -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); } }