From 337000b3da543ebed430c77630ed81e9e662ddf6 Mon Sep 17 00:00:00 2001 From: Josef Rokos Date: Sat, 5 Jul 2014 00:07:41 +0200 Subject: [PATCH] =?UTF-8?q?Opraven=C3=A1=20chyba=20ve=20vyhodnocov=C3=A1n?= =?UTF-8?q?=C3=AD=20pr=C3=A1v?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../info/bukova/isspst/security/IsspstPermissionEvaluator.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/info/bukova/isspst/security/IsspstPermissionEvaluator.java b/src/main/java/info/bukova/isspst/security/IsspstPermissionEvaluator.java index a0ec127f..7c1ab9c0 100644 --- a/src/main/java/info/bukova/isspst/security/IsspstPermissionEvaluator.java +++ b/src/main/java/info/bukova/isspst/security/IsspstPermissionEvaluator.java @@ -41,11 +41,12 @@ public class IsspstPermissionEvaluator implements PermissionEvaluator { private boolean evaluateGlobal(Service service, String permission, List perms) { String moduleId = ""; - String perm = ""; + String perm = permission; for (Module m : Constants.MODULES) { if (m.getServiceClass() != null && m.getServiceClass().isAssignableFrom(service.getClass())) { moduleId = m.getId(); + break; } }