RANGER-1085 : Ranger UI : policy creation validation error

Signed-off-by: Velmurugan Periasamy <[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/903e0cda
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ranger/tree/903e0cda
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ranger/diff/903e0cda

Branch: refs/heads/master
Commit: 903e0cdaf39f230a0ba616a1a8d533140085b599
Parents: 80384f0
Author: Mehul Parikh <[email protected]>
Authored: Wed Jul 6 17:22:31 2016 +0530
Committer: Velmurugan Periasamy <[email protected]>
Committed: Thu Jul 7 14:04:14 2016 -0400

----------------------------------------------------------------------
 .../main/webapp/scripts/views/policies/RangerPolicyForm.js  | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/903e0cda/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 4f5b26f..b3f7ccd 100644
--- a/security-admin/src/main/webapp/scripts/views/policies/RangerPolicyForm.js
+++ b/security-admin/src/main/webapp/scripts/views/policies/RangerPolicyForm.js
@@ -294,7 +294,8 @@ define(function(require){
                                                                model      : 
that.model,
                                                                accessTypes: 
accessType,
                                                                headerTitle: "",
-                                                               
rangerServiceDefModel : that.rangerServiceDefModel
+                                                               
rangerServiceDefModel : that.rangerServiceDefModel,
+                                                               
rangerPolicyType : that.model.get('policyType')
                                                        }).render().el);
                                                
                                                        
that.$('[data-customfields="groupPermsDeny"]').html(new PermissionList({
@@ -304,7 +305,8 @@ define(function(require){
                                                                model      : 
that.model,
                                                                accessTypes: 
accessType,
                                                                headerTitle: 
"Deny",
-                                                               
rangerServiceDefModel : that.rangerServiceDefModel
+                                                               
rangerServiceDefModel : that.rangerServiceDefModel,
+                                                               
rangerPolicyType : that.model.get('policyType')
                                                        }).render().el);
                                                        
that.$('[data-customfields="groupPermsDenyExclude"]').html(new PermissionList({
                                                                collection : 
that.formInputDenyExceptionList,
@@ -313,7 +315,8 @@ define(function(require){
                                                                model      : 
that.model,
                                                                accessTypes: 
accessType,
                                                                headerTitle: 
"Deny",
-                                                               
rangerServiceDefModel : that.rangerServiceDefModel
+                                                               
rangerServiceDefModel : that.rangerServiceDefModel,
+                                                               
rangerPolicyType : that.model.get('policyType')
                                                        }).render().el);
                                        }
                        });

Reply via email to