RANGER-646: fix for an inadvertent change that results in policy creation 
failure

Signed-off-by: Madhan Neethiraj <[email protected]>


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

Branch: refs/heads/master
Commit: f6b6da53d49316db9f1b10e986fb3f2ffd389044
Parents: 6e7af74
Author: Gautam Borad <[email protected]>
Authored: Tue Sep 15 13:47:30 2015 +0530
Committer: Madhan Neethiraj <[email protected]>
Committed: Tue Sep 15 11:02:45 2015 -0700

----------------------------------------------------------------------
 .../src/main/webapp/scripts/views/policies/RangerPolicyForm.js     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/f6b6da53/security-admin/src/main/webapp/scripts/views/policies/RangerPolicyForm.js
----------------------------------------------------------------------
diff --git 
a/security-admin/src/main/webapp/scripts/views/policies/RangerPolicyForm.js 
b/security-admin/src/main/webapp/scripts/views/policies/RangerPolicyForm.js
index cbe35fa..55c3651 100644
--- a/security-admin/src/main/webapp/scripts/views/policies/RangerPolicyForm.js
+++ b/security-admin/src/main/webapp/scripts/views/policies/RangerPolicyForm.js
@@ -331,7 +331,7 @@ define(function(require){
                        this.model.set('denyPolicyItems', 
this.setPermissionsToColl(this.formInputDenyList, new RangerPolicyItem()));
                        this.model.set('allowExceptions', 
this.setPermissionsToColl(this.formInputAllowExceptionList, new 
RangerPolicyItem()));
                        this.model.set('denyExceptions', 
this.setPermissionsToColl(this.formInputDenyExceptionList, new 
RangerPolicyItem()));
-                       
+                       
this.model.set('service',this.rangerService.get('name'));
                        /*//Unset attrs which are not needed 
                        
_.each(this.model.attributes.resources,function(obj,key){
                                this.model.unset(key, obj.values.toString())

Reply via email to