ranger-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ab...@apache.org
Subject ranger git commit: RANGER-2197: Delegate Admin is not able to create policy
Date Fri, 24 Aug 2018 03:19:53 GMT
Repository: ranger
Updated Branches:
  refs/heads/ranger-1.1 ed331bebe -> aa8588e1a


RANGER-2197: Delegate Admin is not able to create policy


Project: http://git-wip-us.apache.org/repos/asf/ranger/repo
Commit: http://git-wip-us.apache.org/repos/asf/ranger/commit/aa8588e1
Tree: http://git-wip-us.apache.org/repos/asf/ranger/tree/aa8588e1
Diff: http://git-wip-us.apache.org/repos/asf/ranger/diff/aa8588e1

Branch: refs/heads/ranger-1.1
Commit: aa8588e1a7a5907cbe4bf4e14ebec14ee3f0167d
Parents: ed331be
Author: Abhay Kulkarni <akulkarni@hortonworks.com>
Authored: Thu Aug 23 14:59:19 2018 -0700
Committer: Abhay Kulkarni <akulkarni@hortonworks.com>
Committed: Thu Aug 23 19:40:30 2018 -0700

----------------------------------------------------------------------
 .../plugin/policyevaluator/RangerDefaultPolicyEvaluator.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ranger/blob/aa8588e1/agents-common/src/main/java/org/apache/ranger/plugin/policyevaluator/RangerDefaultPolicyEvaluator.java
----------------------------------------------------------------------
diff --git a/agents-common/src/main/java/org/apache/ranger/plugin/policyevaluator/RangerDefaultPolicyEvaluator.java
b/agents-common/src/main/java/org/apache/ranger/plugin/policyevaluator/RangerDefaultPolicyEvaluator.java
index e16148d..05a9f40 100644
--- a/agents-common/src/main/java/org/apache/ranger/plugin/policyevaluator/RangerDefaultPolicyEvaluator.java
+++ b/agents-common/src/main/java/org/apache/ranger/plugin/policyevaluator/RangerDefaultPolicyEvaluator.java
@@ -745,7 +745,7 @@ public class RangerDefaultPolicyEvaluator extends RangerAbstractPolicyEvaluator
 			LOG.debug("==> RangerDefaultPolicyEvaluator.isMatch(" + policy.getId() + ", " + evalContext
+ ")");
 		}
 
-		boolean ret = policy.getId() == getId() || isMatch(policy.getResources(), evalContext);
+		final boolean ret = isMatch(policy.getResources(), evalContext);
 
 		if(LOG.isDebugEnabled()) {
 			LOG.debug("<== RangerDefaultPolicyEvaluator.isMatch(" + policy.getId() + ", " + evalContext
+ "): " + ret);


Mime
View raw message