changeset 841:bd51cb7b8d20

Get the correct user function from auth infos.
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 21 Jan 2016 15:36:02 +0100
parents 2fe625c91ab3
children 9f4be0bc724d
files src/main/java/de/intevation/lada/util/auth/NetzbetreiberAuthorizer.java
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)