Skip to content

Commit e51f791

Browse files
update comments
1 parent cbf3f34 commit e51f791

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/users/filters.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,8 @@ impl Filters {
189189
};
190190
let filter_type = &f.query.filter_type;
191191

192-
// if filter type is one of SQL or filter
193-
// then check if the user has access to the dataset based on the query string
194-
// if filter type is search then check if the user has access to the dataset based on the dataset name
192+
// if filter type is SQL, check if the user has access to the dataset based on the query string
193+
// if filter type is search or filter, check if the user has access to the dataset based on the dataset name
195194
if *filter_type == FilterType::SQL {
196195
if (user_auth_for_query(key, query).await).is_ok() {
197196
filters.push(f.clone())

0 commit comments

Comments
 (0)