Skip to content

Commit 7bfb5e8

Browse files
committed
Fix custom authz engine for multi-project
1 parent fc66cdf commit 7bfb5e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/examples/security-authorization-engine/src/main/java/org/elasticsearch/example/CustomAuthorizationEngine.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
import org.elasticsearch.action.ActionListener;
1313
import org.elasticsearch.cluster.metadata.IndexAbstraction;
14-
import org.elasticsearch.cluster.metadata.Metadata;
14+
import org.elasticsearch.cluster.metadata.ProjectMetadata;
1515
import org.elasticsearch.xpack.core.security.action.user.GetUserPrivilegesResponse;
1616
import org.elasticsearch.xpack.core.security.action.user.GetUserPrivilegesResponse.Indices;
1717
import org.elasticsearch.xpack.core.security.authc.Authentication;
@@ -90,7 +90,7 @@ public void authorizeIndexAction(
9090
RequestInfo requestInfo,
9191
AuthorizationInfo authorizationInfo,
9292
AsyncSupplier<ResolvedIndices> indicesAsyncSupplier,
93-
Metadata metadata,
93+
ProjectMetadata project,
9494
ActionListener<IndexAuthorizationResult> listener
9595
) {
9696
if (isSuperuser(requestInfo.getAuthentication().getEffectiveSubject().getUser())) {

0 commit comments

Comments
 (0)