Index: FullyStocked/src/main/java/com/bazi/fullystocked/Web/Controller/WorkerController.java
===================================================================
--- FullyStocked/src/main/java/com/bazi/fullystocked/Web/Controller/WorkerController.java	(revision 3179a2cc9696f22fd1bfbd5f5dfc99f2b603f147)
+++ FullyStocked/src/main/java/com/bazi/fullystocked/Web/Controller/WorkerController.java	(revision e341a60821c019ba8d805a499e77df9636a631c8)
@@ -70,9 +70,9 @@
         {
             Workers u= (Workers) request.getSession().getAttribute("user");
-            if(storedArticlesService.findById(articleId).isEmpty())
+            if(orderedArticlesService.findById(articleId).isEmpty())
             {
                 return "redirect:/worker/deliveredArticles";
             }
-            if(!storedArticlesService.findById(articleId).get().getLocationid().equals(u.getLocation().getLocationid()))
+            if(!orderedArticlesService.findById(articleId).get().getLocationid().equals(u.getLocation().getLocationid()))
             {
                 return "redirect:/login";
