diff --git a/src/main/java/info/bukova/isspst/ui/main/approved/ApprovedList.java b/src/main/java/info/bukova/isspst/ui/main/approved/ApprovedList.java index 1bb8fa7e..60369b4f 100644 --- a/src/main/java/info/bukova/isspst/ui/main/approved/ApprovedList.java +++ b/src/main/java/info/bukova/isspst/ui/main/approved/ApprovedList.java @@ -17,6 +17,7 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import org.springframework.security.access.AccessDeniedException; import org.zkoss.bind.annotation.Command; import org.zkoss.bind.annotation.Init; import org.zkoss.zk.ui.Executions; @@ -110,4 +111,16 @@ public class ApprovedList extends ListViewModel Window orderForm = (Window) Executions.createComponents("/main/orders/created/orderForm.zul", null, params); orderForm.doModal(); } + + @Override + protected List getListFromService() + { + try + { + return super.getListFromService(); + } catch (AccessDeniedException e) + { + return new ArrayList(); + } + } }