Skip to content

Commit 3851b0f

Browse files
add comment on updated logic
1 parent 2f1d018 commit 3851b0f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/users/filters.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,10 @@ impl Filters {
185185
continue;
186186
};
187187
let filter_type = &f.query.filter_type;
188+
189+
// if filter type is one of SQL or filter
190+
// then check if the user has access to the dataset based on the query string
191+
// if filter type is search then check if the user has access to the dataset based on the dataset name
188192
if *filter_type == FilterType::SQL || *filter_type == FilterType::Filter {
189193
if (user_auth_for_query(key, query).await).is_ok() {
190194
filters.push(f.clone())

0 commit comments

Comments
 (0)