From 1bc4c2d6d90557ae84a4867109dfeee9d4fdb90e Mon Sep 17 00:00:00 2001 From: kira <164851225@qq.com> Date: Wed, 1 Aug 2018 13:46:04 +0800 Subject: [PATCH] update --- .../manage/permission/manager/ManagerUserInterceptor.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/au/com/royalpay/payment/manage/permission/manager/ManagerUserInterceptor.java b/src/main/java/au/com/royalpay/payment/manage/permission/manager/ManagerUserInterceptor.java index 644449dcd..967ef6324 100644 --- a/src/main/java/au/com/royalpay/payment/manage/permission/manager/ManagerUserInterceptor.java +++ b/src/main/java/au/com/royalpay/payment/manage/permission/manager/ManagerUserInterceptor.java @@ -1,7 +1,7 @@ package au.com.royalpay.payment.manage.permission.manager; -import au.com.royalpay.payment.manage.management.sysconfig.core.PermissionPartnerManager; import au.com.royalpay.payment.manage.management.sysconfig.core.PermissionManager; +import au.com.royalpay.payment.manage.management.sysconfig.core.PermissionPartnerManager; import au.com.royalpay.payment.manage.signin.core.SignInStatusManager; import au.com.royalpay.payment.tools.CommonConsts; import au.com.royalpay.payment.tools.exceptions.ForbiddenException; @@ -13,6 +13,8 @@ import com.alibaba.fastjson.JSONObject; import org.apache.commons.lang3.ArrayUtils; import org.apache.commons.lang3.StringUtils; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.springframework.core.Ordered; import org.springframework.core.annotation.AnnotatedElementUtils; import org.springframework.stereotype.Component; @@ -30,6 +32,7 @@ import javax.servlet.http.HttpServletResponse; */ @Component public class ManagerUserInterceptor extends HandlerInterceptorAdapter implements Ordered { + Logger logger = LoggerFactory.getLogger(getClass()); @Resource private SignInStatusManager signInStatusManager; @Resource @@ -108,6 +111,7 @@ public class ManagerUserInterceptor extends HandlerInterceptorAdapter implements if(func!=null && StringUtils.isNotEmpty(func.getString("module_id"))){ JSONArray arr = loginUser.getJSONArray("available_module_ids"); if (arr == null || !arr.contains(func.getString("module_id"))) { + logger.info(funcId); throw new ForbiddenException("error.permission.nopermission"); } }