From 62636b77e84b881a7ea365c1868966935eaeff97 Mon Sep 17 00:00:00 2001 From: Florian Reimair Date: Tue, 17 Jun 2014 14:21:16 +0200 Subject: fixed QAA level out of range error --- .../java/at/gv/egovernment/moa/id/config/auth/OAAuthParameter.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'id/server/idserverlib') diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/config/auth/OAAuthParameter.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/config/auth/OAAuthParameter.java index f6360f4cf..cd3191755 100644 --- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/config/auth/OAAuthParameter.java +++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/config/auth/OAAuthParameter.java @@ -409,10 +409,11 @@ public Map getFormCustomizaten() { */ @Override public Integer getQaaLevel() { - - if (oa_auth.getOASTORK() != null && oa_auth.getOASTORK().getQaa() != null) + if (oa_auth.getOASTORK() != null && + oa_auth.getOASTORK().getQaa() != null && + oa_auth.getOASTORK().getQaa() >= 1 && + oa_auth.getOASTORK().getQaa() <= 4) return oa_auth.getOASTORK().getQaa(); - else return 4; } -- cgit v1.2.3