ranger-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From me...@apache.org
Subject ranger git commit: RANGER-1786: Need warning on external user role change.
Date Tue, 19 Sep 2017 12:07:21 GMT
Repository: ranger
Updated Branches:
  refs/heads/ranger-0.7 5a77c8cf2 -> 29f8918ff


RANGER-1786: Need warning on external user role change.


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

Branch: refs/heads/ranger-0.7
Commit: 29f8918ffd6fc9aa8e0d5eb4256349ac27b23690
Parents: 5a77c8c
Author: Nitin Galave <nitin.galave@gmail.com>
Authored: Thu Sep 14 18:15:50 2017 +0530
Committer: Mehul Parikh <mehul@apache.org>
Committed: Tue Sep 19 17:36:44 2017 +0530

----------------------------------------------------------------------
 security-admin/src/main/webapp/scripts/views/users/UserForm.js | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ranger/blob/29f8918f/security-admin/src/main/webapp/scripts/views/users/UserForm.js
----------------------------------------------------------------------
diff --git a/security-admin/src/main/webapp/scripts/views/users/UserForm.js b/security-admin/src/main/webapp/scripts/views/users/UserForm.js
index 492b14d..27e86a9 100644
--- a/security-admin/src/main/webapp/scripts/views/users/UserForm.js
+++ b/security-admin/src/main/webapp/scripts/views/users/UserForm.js
@@ -54,6 +54,10 @@ define(function(require){
 		bindEvents : function(){
 			this.on('userRoleList:change', function(form, fieldEditor){
 				//this.userRoleListChange(form, fieldEditor);
+				if(this.model.get('userSource') === XAEnums.UserTypes.USER_EXTERNAL.value){
+					var externalUserRoleProperty = "<b> Warning !!</b> :  Please make sure that
<i>"+ this.model.get('name') + "</i> user's role change performed here is consistent
with <i>ranger.usersync.group.based.role.assignment.rules</i> property in ranger
usersync configuration.";
+					XAUtils.alertPopup({msg : externalUserRoleProperty});
+				}
     		});
 		},
 		


Mime
View raw message