Mercurial > lada > lada-server
comparison src/main/java/de/intevation/lada/util/auth/NetzbetreiberAuthorizer.java @ 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 | fa922101a462 |
children | d0a591b3eade |
comparison
equal
deleted
inserted
replaced
840:2fe625c91ab3 | 841:bd51cb7b8d20 |
---|---|
31 return false; | 31 return false; |
32 } | 32 } |
33 return (method == RequestMethod.POST || | 33 return (method == RequestMethod.POST || |
34 method == RequestMethod.PUT || | 34 method == RequestMethod.PUT || |
35 method == RequestMethod.DELETE) && | 35 method == RequestMethod.DELETE) && |
36 userInfo.getNetzbetreiber().contains(id) && | 36 userInfo.getFunktionenForNetzbetreiber(id).contains(4); |
37 userInfo.getFunktionen().contains(4); | |
38 } | 37 } |
39 | 38 |
40 @Override | 39 @Override |
41 public <T> Response filter( | 40 public <T> Response filter( |
42 Response data, | 41 Response data, |