eric-maynard commented on code in PR #396:
URL: https://github.com/apache/polaris/pull/396#discussion_r1817032982


##########
polaris-core/src/main/java/org/apache/polaris/core/auth/PolarisAuthorizer.java:
##########
@@ -514,12 +517,12 @@ public void authorizeOrThrow(
           "Principal '%s' is not authorized for op %s due to 
PRINCIPAL_CREDENTIAL_ROTATION_REQUIRED_STATE",
           authenticatedPrincipal.getName(), authzOp);
     } else if (!isAuthorized(
-        authenticatedPrincipal, activatedGranteeIds, authzOp, targets, 
secondaries)) {
+        authenticatedPrincipal, activatedEntities, authzOp, targets, 
secondaries)) {
       throw new ForbiddenException(
-          "Principal '%s' with activated PrincipalRoles '%s' and activated ids 
'%s' is not authorized for op %s",
+          "Principal '%s' with activated PrincipalRoles '%s' and activated 
grants via '%s' is not authorized for op %s",

Review Comment:
   I guess you also have grants _on_ A and B but they are not privilege grants, 
they are role grants.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to