You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by me...@apache.org on 2017/09/19 12:04:36 UTC
ranger git commit: RANGER-1786: Need warning on external user role
change.
Repository: ranger
Updated Branches:
refs/heads/master b028f405a -> 83014529e
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/83014529
Tree: http://git-wip-us.apache.org/repos/asf/ranger/tree/83014529
Diff: http://git-wip-us.apache.org/repos/asf/ranger/diff/83014529
Branch: refs/heads/master
Commit: 83014529eeac1c9e21c5906720a7df2a3407f444
Parents: b028f40
Author: Nitin Galave <ni...@gmail.com>
Authored: Thu Sep 14 18:15:50 2017 +0530
Committer: Mehul Parikh <me...@apache.org>
Committed: Tue Sep 19 17:34:10 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/83014529/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});
+ }
});
},