Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve Issue #2282 #2280 Fix Column Permission Issues: Unchecking All Options and Substring Filtering #2283

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vip2193
Copy link

@vip2193 vip2193 commented Dec 16, 2023

  1. Resolve the issue where unchecking all column permissions allows roles to see all fields.
  2. Address the issue where using the 'contains' method for column permissions leads to sub-strings not being filtered out. Switch to using regular expression for a more accurate permission check.

Resolve Issue
#2282
#2280

…oles to see all fields.

2. Address the issue where using the 'contains' method for column permissions leads to sub-strings not being filtered out. Switch to using regular expression for a more accurate permission check.
@@ -214,7 +215,8 @@ private void excludeColumns(Dataframe data, Set<SelectColumn> include) {
.noneMatch(selectColumn ->
column.columnKey().equals(selectColumn.getColumnKey())
|| column.columnKey().equals(selectColumn.getAlias())
|| column.columnKey().contains(selectColumn.getColumnKey()))) {
// 用正则做聚合函数权限的判断 剔除原来的contains判断

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi @vip2193 should we avoid to using Chinese? cc @scottsut

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok i will change to use english

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants