|
|
@ -98,8 +98,8 @@ public class SecurityConfig extends AbstractComponent {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private String[] getPermittedAccess(boolean ignoringOnly) {
|
|
|
|
private String[] getPermittedAccess(boolean ignoringOnly) {
|
|
|
|
String str = properties.getString("permitAccess", "");
|
|
|
|
String[] str = properties.getStringArray("permitAccess");
|
|
|
|
List<String> ignoring = !str.isEmpty() ? Stream.of(str.split(",")).map(String::trim).toList() : Collections.emptyList();
|
|
|
|
List<String> ignoring = !isEmpty(str) ? Stream.of(str).map(String::trim).toList() : Collections.emptyList();
|
|
|
|
if (ignoringOnly) {
|
|
|
|
if (ignoringOnly) {
|
|
|
|
return ignoring.toArray(new String[ignoring.size()]);
|
|
|
|
return ignoring.toArray(new String[ignoring.size()]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|