Skip to content
This repository has been archived by the owner on Apr 4, 2021. It is now read-only.

Commit

Permalink
review by balu
Browse files Browse the repository at this point in the history
  • Loading branch information
yzheng-hortonworks committed Jun 17, 2016
1 parent 7aa034b commit 4f7c4a4
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -171,8 +171,8 @@ public void authorizeResource(String resource, String action,
authorizeAdminResource(authenticatedUGI, action);
}
} else if ("entities".equals(resource) || "instance".equals(resource)) {
authorizeEntityResource(authenticatedUGI, entityName, entityType, action,
"entities".equals(resource) && LIST_OPERATION.equals(action));
boolean entityTypeOptional = "entities".equals(resource) && LIST_OPERATION.equals(action);
authorizeEntityResource(authenticatedUGI, entityName, entityType, action, entityTypeOptional);
} else if ("metadata".equals(resource)) {
authorizeMetadataResource(authenticatedUGI, action);
}
Expand Down

0 comments on commit 4f7c4a4

Please sign in to comment.