File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
src/main/java/ru/mystamps/web/feature/series Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -642,17 +642,14 @@ public static void loadErrorsFromDownloadInterceptor(
642
642
model .put ("solovyovNumbers" , solovyovNumbers );
643
643
model .put ("zagorskiNumbers" , zagorskiNumbers );
644
644
645
+ boolean userCanAddImagesToSeries = isUserCanAddImagesToSeries (series );
646
+ model .put ("allowAddingImages" , userCanAddImagesToSeries );
647
+
645
648
boolean isSeriesInCollection =
646
649
collectionService .isSeriesInCollection (currentUserId , seriesId );
647
-
648
- boolean userCanAddImagesToSeries =
649
- isUserCanAddImagesToSeries (series );
650
-
651
650
model .put ("isSeriesInCollection" , isSeriesInCollection );
652
- model .put ("allowAddingImages" , userCanAddImagesToSeries );
653
651
654
652
if (SecurityContextUtils .hasAuthority (Authority .VIEW_SERIES_SALES )) {
655
-
656
653
List <PurchaseAndSaleDto > purchasesAndSales =
657
654
seriesService .findPurchasesAndSales (seriesId );
658
655
model .put ("purchasesAndSales" , purchasesAndSales );
You can’t perform that action at this time.
0 commit comments