|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
package au.com.royalpay.payment.manage.permission.manager;
|
|
|
|
|
|
|
|
|
|
import au.com.royalpay.payment.manage.management.sysconfig.core.PartnerPermissionManager;
|
|
|
|
|
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.signin.core.SignInStatusManager;
|
|
|
|
|
import au.com.royalpay.payment.tools.CommonConsts;
|
|
|
|
@ -35,7 +35,7 @@ public class ManagerUserInterceptor extends HandlerInterceptorAdapter implements
|
|
|
|
|
@Resource
|
|
|
|
|
private PermissionManager permissionManager;
|
|
|
|
|
@Resource
|
|
|
|
|
private PartnerPermissionManager partnerPermissionManager;
|
|
|
|
|
private PermissionPartnerManager permissionPartnerManager;
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
|
|
|
|
@ -104,7 +104,7 @@ public class ManagerUserInterceptor extends HandlerInterceptorAdapter implements
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JSONObject func = partnerPermissionManager.getPartnerFuncById(funcId);
|
|
|
|
|
JSONObject func = permissionPartnerManager.getPartnerFuncById(funcId);
|
|
|
|
|
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"))) {
|
|
|
|
|