diff options
author | Florian Reimair <florian.reimair@iaik.tugraz.at> | 2014-06-17 14:21:16 +0200 |
---|---|---|
committer | Florian Reimair <florian.reimair@iaik.tugraz.at> | 2014-06-17 14:21:16 +0200 |
commit | 62636b77e84b881a7ea365c1868966935eaeff97 (patch) | |
tree | cfdae29083baa4108a2c572a7a3ae4944c2d2f00 | |
parent | e9f365ecbbdf20a67e81179780121f3f922a87c6 (diff) | |
download | moa-id-spss-62636b77e84b881a7ea365c1868966935eaeff97.tar.gz moa-id-spss-62636b77e84b881a7ea365c1868966935eaeff97.tar.bz2 moa-id-spss-62636b77e84b881a7ea365c1868966935eaeff97.zip |
fixed QAA level out of range error
-rw-r--r-- | id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/config/auth/OAAuthParameter.java | 7 |
1 files changed, 4 insertions, 3 deletions
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<String, String> 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; } |