[Lada-commits] [PATCH 1 of 3] Get the correct user function from auth infos

Wald Commits scm-commit at wald.intevation.org
Thu Jan 21 15:37:00 CET 2016


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1453386962 -3600
# Node ID bd51cb7b8d20db7165429cf6aa32121d6bb377ca
# Parent  2fe625c91ab3ffee85955c0bc53c95e6f9b08cc7
Get the correct user function from auth infos.

diff -r 2fe625c91ab3 -r bd51cb7b8d20 src/main/java/de/intevation/lada/util/auth/NetzbetreiberAuthorizer.java
--- a/src/main/java/de/intevation/lada/util/auth/NetzbetreiberAuthorizer.java	Thu Jan 21 09:01:57 2016 +0100
+++ b/src/main/java/de/intevation/lada/util/auth/NetzbetreiberAuthorizer.java	Thu Jan 21 15:36:02 2016 +0100
@@ -33,8 +33,7 @@
         return (method == RequestMethod.POST ||
             method == RequestMethod.PUT ||
             method == RequestMethod.DELETE) &&
-            userInfo.getNetzbetreiber().contains(id) &&
-            userInfo.getFunktionen().contains(4);
+            userInfo.getFunktionenForNetzbetreiber(id).contains(4);
     }
 
     @Override


More information about the Lada-commits mailing list