[Lada-commits] [PATCH 1 of 2] Fixed authorization. Avoids NPE for users/roles without mst_id
Wald Commits
scm-commit at wald.intevation.org
Wed Apr 6 12:20:14 CEST 2016
# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1459937971 -7200
# Node ID 22052e4808c0f2916216d13de87060792ed0812e
# Parent 9293d37c65f7f940fc442e240091c158a48e6b97
Fixed authorization. Avoids NPE for users/roles without mst_id
diff -r 9293d37c65f7 -r 22052e4808c0 src/main/java/de/intevation/lada/util/auth/UserInfo.java
--- a/src/main/java/de/intevation/lada/util/auth/UserInfo.java Mon Mar 14 10:18:24 2016 +0100
+++ b/src/main/java/de/intevation/lada/util/auth/UserInfo.java Wed Apr 06 12:19:31 2016 +0200
@@ -106,6 +106,9 @@
public boolean belongsTo(String messstelle, String labor) {
for (Auth a : auth) {
+ if (a.getMstId() == null) {
+ continue;
+ }
if (a.getMstId().contains(messstelle) &&
a.getLaborMstId() != null &&
labor != null &&
More information about the Lada-commits
mailing list