Skip to content

Commit 81f8b25

Browse files
committed
fix
1 parent 6fee99d commit 81f8b25

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import org.elasticsearch.action.support.IndexComponentSelector;
1414
import org.elasticsearch.cluster.metadata.IndexAbstraction;
1515
import org.elasticsearch.cluster.metadata.Metadata;
16+
import org.elasticsearch.core.Nullable;
1617
import org.elasticsearch.xpack.core.security.action.user.GetUserPrivilegesResponse;
1718
import org.elasticsearch.xpack.core.security.action.user.GetUserPrivilegesResponse.Indices;
1819
import org.elasticsearch.xpack.core.security.authc.Authentication;
@@ -160,6 +161,7 @@ public void checkPrivileges(AuthorizationInfo authorizationInfo,
160161

161162
@Override
162163
public void getUserPrivileges(AuthorizationInfo authorizationInfo,
164+
@Nullable RoleReference.ApiKeyRoleType unwrapLimitedRole,
163165
ActionListener<GetUserPrivilegesResponse> listener) {
164166
if (isSuperuser(authorizationInfo)) {
165167
listener.onResponse(getUserPrivilegesResponse(true));

0 commit comments

Comments
 (0)