This commit is contained in:
GoXLR 2022-10-20 04:30:17 +02:00
parent a0459183a7
commit 0da3fd9476
No known key found for this signature in database
GPG Key ID: 5B163CA341BAA2EA
2 changed files with 2 additions and 3 deletions

View File

@ -171,7 +171,7 @@
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.12</version>
<version>1.18.24</version>
</dependency>
</dependencies>
</project>

View File

@ -17,9 +17,8 @@ public final class AuthorizationFilter implements Handler<RoutingContext> {
public void handle(RoutingContext ctx) {
Actor actor = ctx.get("actor");
ctx.next();
if (actor.isAuthorized()) {
ctx.next();
} else {
ErrorUtils.respondOther(ctx, 403, "Failed to authorize as an approved actor.", "failedToAuthorizeNotApprovedActor", ImmutableMap.of());
}