RANGER-607 : Allow to create multiple policy items for same user or group

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/13cdf4fb
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ranger/tree/13cdf4fb
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ranger/diff/13cdf4fb

Branch: refs/heads/tag-policy
Commit: 13cdf4fb66fbc490bceafce6b9b6fed966e4bb35
Parents: f5ef6f1
Author: Gautam Borad <[email protected]>
Authored: Mon Aug 17 09:19:03 2015 +0530
Committer: Madhan Neethiraj <[email protected]>
Committed: Tue Aug 25 15:11:41 2015 -0700

----------------------------------------------------------------------
 .../main/webapp/scripts/views/policies/PermissionList.js  | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/13cdf4fb/security-admin/src/main/webapp/scripts/views/policies/PermissionList.js
----------------------------------------------------------------------
diff --git 
a/security-admin/src/main/webapp/scripts/views/policies/PermissionList.js 
b/security-admin/src/main/webapp/scripts/views/policies/PermissionList.js
index 0cba319..b392248 100644
--- a/security-admin/src/main/webapp/scripts/views/policies/PermissionList.js
+++ b/security-admin/src/main/webapp/scripts/views/policies/PermissionList.js
@@ -358,11 +358,11 @@ define(function(require) {
                getSelectdValues : function($select, typeGroup){
                        var vals = [],selectedVals = [];
                        var name = typeGroup ? 'group' : 'user';
-                       this.collection.each(function(m){
-                               if(!_.isUndefined(m.get(name+'Name')) && 
!_.isNull(m.get(name+'Name'))){
-                                       vals.push.apply(vals, 
m.get(name+'Name').split(','));
-                               }
-                       });
+//                     this.collection.each(function(m){
+//                             if(!_.isUndefined(m.get(name+'Name')) && 
!_.isNull(m.get(name+'Name'))){
+//                                     vals.push.apply(vals, 
m.get(name+'Name').split(','));
+//                             }
+//                     });
                        if(!_.isEmpty($select.select2('data')))
                                selectedVals = 
_.map($select.select2('data'),function(obj){ return obj.text});
                        vals.push.apply(vals , selectedVals);

Reply via email to