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