go back
This commit is contained in:
parent
a0459183a7
commit
0da3fd9476
2
pom.xml
2
pom.xml
|
@ -171,7 +171,7 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.projectlombok</groupId>
|
<groupId>org.projectlombok</groupId>
|
||||||
<artifactId>lombok</artifactId>
|
<artifactId>lombok</artifactId>
|
||||||
<version>1.18.12</version>
|
<version>1.18.24</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</project>
|
</project>
|
|
@ -17,9 +17,8 @@ public final class AuthorizationFilter implements Handler<RoutingContext> {
|
||||||
public void handle(RoutingContext ctx) {
|
public void handle(RoutingContext ctx) {
|
||||||
Actor actor = ctx.get("actor");
|
Actor actor = ctx.get("actor");
|
||||||
|
|
||||||
ctx.next();
|
|
||||||
if (actor.isAuthorized()) {
|
if (actor.isAuthorized()) {
|
||||||
|
ctx.next();
|
||||||
} else {
|
} else {
|
||||||
ErrorUtils.respondOther(ctx, 403, "Failed to authorize as an approved actor.", "failedToAuthorizeNotApprovedActor", ImmutableMap.of());
|
ErrorUtils.respondOther(ctx, 403, "Failed to authorize as an approved actor.", "failedToAuthorizeNotApprovedActor", ImmutableMap.of());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue