xhxu 3 роки тому
джерело
коміт
da9a9898cf
1 змінених файлів з 4 додано та 2 видалено
  1. +4
    -2
      mallinkCApi/src/main/java/com/iformall/interceptor/AuthorizationInterceptor.java

+ 4
- 2
mallinkCApi/src/main/java/com/iformall/interceptor/AuthorizationInterceptor.java Переглянути файл

@@ -75,9 +75,11 @@ public class AuthorizationInterceptor extends HandlerInterceptorAdapter {
request.setAttribute(Constant.LOGIN_USER_KEY, cUser.getId());
if (!StringUtils.isBlank(mallTenantId)) {
if (StringUtils.isNotBlank(mallTenantId)) {
request.setAttribute(Constant.TENANT_ID, mallTenantId);
if(!mallTenantId.equals(cUser.getTenantId())){
if (StringUtils.isNotBlank(cUser.getParentTenantId())) {
request.setAttribute(Constant.PARENT_TENANT_ID, cUser.getParentTenantId());
}else if(!mallTenantId.equals(cUser.getTenantId())){
request.setAttribute(Constant.PARENT_TENANT_ID, cUser.getTenantId());
}
}else {


Завантаження…
Відмінити
Зберегти