You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by ni...@apache.org on 2021/07/16 10:01:07 UTC

[ranger] branch ranger-2.2 updated: RANGER-3338 : Masking and Row filter policy are getting exported from report page when Policy type=Access.

This is an automated email from the ASF dual-hosted git repository.

ni3galave pushed a commit to branch ranger-2.2
in repository https://gitbox.apache.org/repos/asf/ranger.git


The following commit(s) were added to refs/heads/ranger-2.2 by this push:
     new 6bf1ff2  RANGER-3338 : Masking and Row filter policy are getting exported from report page when Policy type=Access.
6bf1ff2 is described below

commit 6bf1ff25e6964d34d7bfdf0224e96624d7dbfc14
Author: Nitin Galave <ni...@apache.org>
AuthorDate: Wed Jul 14 17:22:32 2021 +0530

    RANGER-3338 : Masking and Row filter policy are getting exported from report page when Policy type=Access.
---
 .../src/main/webapp/scripts/views/reports/UserAccessLayout.js          | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/security-admin/src/main/webapp/scripts/views/reports/UserAccessLayout.js b/security-admin/src/main/webapp/scripts/views/reports/UserAccessLayout.js
index cbd834c..e6ec81f 100644
--- a/security-admin/src/main/webapp/scripts/views/reports/UserAccessLayout.js
+++ b/security-admin/src/main/webapp/scripts/views/reports/UserAccessLayout.js
@@ -210,6 +210,9 @@ define(function(require) {'use strict';
                                 this.setupGroupAutoComplete();
                         }
 			this.renderComponentAndPolicyTypeSelect();
+			if(!_.isUndefined(this.ui.policyType.val()) && _.isUndefined(this.urlQueryParams)) {
+				this.urlQueryParams = {'policyType' : this.ui.policyType.val()}
+			}
                         if(this.urlQueryParams) {
                                 this.onSearch()
                         } else {