Test allow and deny rules for the provided user. @return true if this user is allowed to deploy, false otherwise
(String user)
| 407 | * @return <code>true</code> if this user is allowed to deploy, <code>false</code> otherwise |
| 408 | */ |
| 409 | private boolean isDeployAllowed(String user) { |
| 410 | if (deny != null && deny.matcher(user).matches()) { |
| 411 | return false; |
| 412 | } |
| 413 | if (allow != null) { |
| 414 | return allow.matcher(user).matches(); |
| 415 | } |
| 416 | return true; |
| 417 | } |
| 418 | |
| 419 | private record DeployUserDirectory(UserConfig config, String user, String home) implements Runnable { |
| 420 | @Override |