MCPcopy Index your code
hub / github.com/apache/tomcat / isDeployAllowed

Method isDeployAllowed

java/org/apache/catalina/startup/UserConfig.java:409–417  ·  view source on GitHub ↗

Test allow and deny rules for the provided user. @return true if this user is allowed to deploy, false otherwise

(String user)

Source from the content-addressed store, hash-verified

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

Callers 1

deployMethod · 0.95

Calls 1

matchesMethod · 0.65

Tested by

no test coverage detected