| | |
| | | List<String> conditions = new ArrayList<String>();
|
| | | List<String> scopeCustomIds = new ArrayList<String>();
|
| | | user.getRoles().forEach(role -> {
|
| | | if (DATA_SCOPE_CUSTOM.equals(role.getDataScope()) && StringUtils.containsAny(role.getPermissions(), Convert.toStrArray(permission)))
|
| | | if (DATA_SCOPE_CUSTOM.equals(role.getDataScope()) && StringUtils.equals(role.getStatus(), UserConstants.ROLE_NORMAL) && StringUtils.containsAny(role.getPermissions(), Convert.toStrArray(permission)))
|
| | | {
|
| | | scopeCustomIds.add(Convert.toStr(role.getRoleId()));
|
| | | }
|