Changeset e341a60
- Timestamp:
- 01/11/23 13:30:40 (23 months ago)
- Branches:
- main
- Children:
- 4b34fed
- Parents:
- 3179a2c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
FullyStocked/src/main/java/com/bazi/fullystocked/Web/Controller/WorkerController.java
r3179a2c re341a60 70 70 { 71 71 Workers u= (Workers) request.getSession().getAttribute("user"); 72 if( storedArticlesService.findById(articleId).isEmpty())72 if(orderedArticlesService.findById(articleId).isEmpty()) 73 73 { 74 74 return "redirect:/worker/deliveredArticles"; 75 75 } 76 if(! storedArticlesService.findById(articleId).get().getLocationid().equals(u.getLocation().getLocationid()))76 if(!orderedArticlesService.findById(articleId).get().getLocationid().equals(u.getLocation().getLocationid())) 77 77 { 78 78 return "redirect:/login";
Note:
See TracChangeset
for help on using the changeset viewer.