File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -185,18 +185,18 @@ impl Filters {
185
185
let query = if let Some ( q) = & f. query . filter_query {
186
186
q
187
187
} else {
188
- continue ;
188
+ & String :: default ( )
189
189
} ;
190
190
let filter_type = & f. query . filter_type ;
191
191
192
192
// if filter type is one of SQL or filter
193
193
// then check if the user has access to the dataset based on the query string
194
194
// if filter type is search then check if the user has access to the dataset based on the dataset name
195
- if * filter_type == FilterType :: SQL || * filter_type == FilterType :: Filter {
195
+ if * filter_type == FilterType :: SQL {
196
196
if ( user_auth_for_query ( key, query) . await ) . is_ok ( ) {
197
197
filters. push ( f. clone ( ) )
198
198
}
199
- } else if * filter_type == FilterType :: Search {
199
+ } else if * filter_type == FilterType :: Search || * filter_type == FilterType :: Filter {
200
200
let dataset_name = & f. stream_name ;
201
201
let permissions = Users . get_permissions ( key) ;
202
202
if user_auth_for_datasets ( & permissions, & [ dataset_name. to_string ( ) ] ) . is_ok ( ) {
You can’t perform that action at this time.
0 commit comments