You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried using the EnableFilter query and use a lambda with a function to check user level and filter as required. This function returned false, but the filter still navigated to entities that weren't required.
I found that I had to add a statement into BuildFilterExpressionWithDynamicFilters of
I'm certain I'm doing something wrong with the configuration of DynamicFilters rather than your code, but I can't see what's wrong. I also noticed from the source that methods like PreventAllDisabledFilterConditions in DynamicFilterExtensions were not being called but I don't know why.
The text was updated successfully, but these errors were encountered:
I tried using the EnableFilter query and use a lambda with a function to check user level and filter as required. This function returned false, but the filter still navigated to entities that weren't required.
I found that I had to add a statement into BuildFilterExpressionWithDynamicFilters of
(!_DbContext.IsFilterEnabled(filter.FilterName)) continue;
for each filter in filterList for this to work.
I'm certain I'm doing something wrong with the configuration of DynamicFilters rather than your code, but I can't see what's wrong. I also noticed from the source that methods like PreventAllDisabledFilterConditions in DynamicFilterExtensions were not being called but I don't know why.
The text was updated successfully, but these errors were encountered: