Pārlūkot izejas kodu

PRS DESKTOP - visibility of Deliveries now governed by new token added

Nick-PRSDigital@bitbucket.org 2 gadi atpakaļ
vecāks
revīzija
4ac0faee3d
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      prs.desktop/MainWindow.xaml.cs

+ 1 - 1
prs.desktop/MainWindow.xaml.cs

@@ -675,7 +675,7 @@ namespace PRSDesktop
                             ClientFactory.IsSupported<DeliveryItem>() && Security.IsAllowed<CanViewLogisticsReadyToGo>());
                         SetVisibility(DispatchButton, Security.CanView<Shipment>() && Security.CanView<DeliveryItem>());
                         SetVisibility(RequisitionsButton, Security.CanView<Requisition>());
-                        SetVisibility(DeliveriesButton, Security.CanView<Delivery>());
+                        SetVisibility(DeliveriesButton, Security.IsAllowed<CanViewDeliveriesModule>());
                         SetVisibility(DeliveredItemsButton,
                             ClientFactory.IsSupported<DeliveryItem>() && Security.IsAllowed<CanViewDeliveredOnSite>());