fix 修复 !pr444 代码判断错误
This commit is contained in:
parent
c93b666140
commit
3d9b05a61a
@ -26,8 +26,8 @@ public class SysSensitiveServiceImpl implements SensitiveService {
|
||||
if (!StpUtil.isLogin()) {
|
||||
return true;
|
||||
}
|
||||
boolean roleExist = StringUtils.isNotEmpty(roleKey);
|
||||
boolean permsExist = StringUtils.isNotEmpty(perms);
|
||||
boolean roleExist = StringUtils.isNotBlank(roleKey);
|
||||
boolean permsExist = StringUtils.isNotBlank(perms);
|
||||
if (roleExist && permsExist) {
|
||||
if (StpUtil.hasRole(roleKey) && StpUtil.hasPermission(perms)) {
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user