fix 修复 关闭多租户 脱敏判断问题
This commit is contained in:
parent
7b6dc06a06
commit
3303b9aa59
@ -2,6 +2,7 @@ package org.dromara.system.service.impl;
|
|||||||
|
|
||||||
import org.dromara.common.satoken.utils.LoginHelper;
|
import org.dromara.common.satoken.utils.LoginHelper;
|
||||||
import org.dromara.common.sensitive.core.SensitiveService;
|
import org.dromara.common.sensitive.core.SensitiveService;
|
||||||
|
import org.dromara.common.tenant.helper.TenantHelper;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -20,7 +21,10 @@ public class SysSensitiveServiceImpl implements SensitiveService {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean isSensitive() {
|
public boolean isSensitive() {
|
||||||
|
if (TenantHelper.isEnable()) {
|
||||||
return !LoginHelper.isSuperAdmin() || !LoginHelper.isTenantAdmin();
|
return !LoginHelper.isSuperAdmin() || !LoginHelper.isTenantAdmin();
|
||||||
}
|
}
|
||||||
|
return !LoginHelper.isSuperAdmin();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user