added logging for unauthorized user creation request

This commit is contained in:
Axel Uhl
2023-05-05 18:19:06 +02:00
parent badd7fefa4
commit bc582d3931
@@ -1962,6 +1962,7 @@ implements ReplicableSecurityService, ClearStateTestSupport {
SecurityUtils.getSubject().checkPermission(identifier.getStringPermission(DefaultActions.CREATE));
result = createActionReturningCreatedObject.call();
} catch (AuthorizationException e) {
logger.warning("Unauthorized request to create user with name \""+username+"\": "+e.getMessage());
throw e;
} catch (Exception e) {
throw new RuntimeException(e);