Skip to content

Commit

Permalink
RANGER-1786: Need warning on external user role change.
Browse files Browse the repository at this point in the history
  • Loading branch information
ni3galave authored and mehulbparikh committed Sep 19, 2017
1 parent 5a77c8c commit 29f8918
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -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});
}
});
},

Expand Down

0 comments on commit 29f8918

Please sign in to comment.