maheshbandal15 commented on code in PR #945:
URL: https://github.com/apache/ranger/pull/945#discussion_r3242856428


##########
agents-common/src/main/java/org/apache/ranger/plugin/policyengine/gds/GdsDatasetEvaluator.java:
##########
@@ -121,7 +123,12 @@ public void evaluate(RangerAccessRequest request, 
GdsAccessResult result, Collec
                     
RangerAccessRequestUtil.setAccessTypeResults(datasetRequest.getContext(), null);
                     
RangerAccessRequestUtil.setAccessTypeACLResults(datasetRequest.getContext(), 
null);
 
-                    policyEvaluators.forEach(e -> e.evaluate(datasetRequest, 
datasetResult));
+                    policyEvaluators.forEach(e -> {
+                        if (!e.isApplicable(accessTime)) {

Review Comment:
   Thanks for reviewing. I have addressed the review comment. Kindly review the 
updated patch.
    
   [RANGER-5597](https://issues.apache.org/jira/browse/RANGER-5597) is created 
to track required fix in `GdsProjectEvaluator.evaluate()`. Refer 
https://github.com/apache/ranger/pull/946



-- 
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