Repository: incubator-ranger
Updated Branches:
  refs/heads/ranger-0.5 eb966b30a -> 371293af2


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

Signed-off-by: Madhan Neethiraj <[email protected]>
(cherry picked from commit 13cdf4fb66fbc490bceafce6b9b6fed966e4bb35)


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

Branch: refs/heads/ranger-0.5
Commit: 371293af2c2868e54afeab5a87ed259f72448575
Parents: eb966b3
Author: Gautam Borad <[email protected]>
Authored: Mon Aug 17 09:19:03 2015 +0530
Committer: Madhan Neethiraj <[email protected]>
Committed: Thu Dec 3 10:23:15 2015 -0800

----------------------------------------------------------------------
 .../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/371293af/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