From cfcecc2e1be8aa0259514721ff6ae38d7964eb27 Mon Sep 17 00:00:00 2001 From: Josef Rokos Date: Sat, 4 Oct 2014 18:45:10 +0200 Subject: [PATCH] =?UTF-8?q?Opravena=20chyba=20403=20po=20otev=C5=99en?= =?UTF-8?q?=C3=AD=20agendy=20schv=C3=A1len=C3=BDch=20polo=C5=BEek.=20U?= =?UTF-8?q?=C5=BEivatel=20m=C5=AF=C5=BEe=20m=C3=ADt=20pr=C3=A1vo=20READ=20?= =?UTF-8?q?na=20agendu,=20ale=20nemus=C3=AD=20m=C3=ADt=20pr=C3=A1va=20na?= =?UTF-8?q?=20zobrazen=C3=AD=20po=C5=BEadavk=C5=AF=20na=20=C5=BE=C3=A1dn?= =?UTF-8?q?=C3=A9m=20st=C5=99edisku.=20V=20tom=20p=C5=99=C3=ADpad=C4=9B=20?= =?UTF-8?q?uvid=C3=AD=20agendu=20pr=C3=A1zdnou.=20closes=20#147?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../isspst/ui/main/approved/ApprovedList.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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(); + } + } }