go back
This commit is contained in:
parent
a0459183a7
commit
0da3fd9476
2
pom.xml
2
pom.xml
|
@ -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>
|
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue