changeset 963:0e9c4718196f

IDs should be equal, not just contain each other.
author Tom Gottfried <tom@intevation.de>
date Mon, 30 May 2016 15:01:08 +0200
parents 829092ba09f7
children 3c1b1631e474
files src/main/java/de/intevation/lada/util/auth/UserInfo.java
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/util/auth/UserInfo.java	Fri May 27 19:20:47 2016 +0200
+++ b/src/main/java/de/intevation/lada/util/auth/UserInfo.java	Mon May 30 15:01:08 2016 +0200
@@ -115,10 +115,9 @@
             if (a.getMstId() == null) {
                 continue;
             }
-            if (a.getMstId().contains(messstelle) ||
-                (a.getLaborMstId() != null &&
-                labor != null &&
-                a.getLaborMstId().contains(labor))) {
+            if (a.getMstId().equals(messstelle)
+                || (a.getLaborMstId() != null
+                    && a.getLaborMstId().equals(labor))) {
                 return true;
             }
         }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)