Couldn't find any similar questions on the forum so hopefully someone can help :)
At the moment I have a pre-filter on my grid, which filters a column based on the role of the logged in user.
filter: {
filters: [{ field: "RSM", operator: "contains", value: manager}]
}
This pre-filters the grid when the logged in user is a manager. The issue I'm having is it will always pre-filter the grid even if the logged in user isn't a manager. So although the data itself won't be filtered, it will still appear as if the Manager column is being filtered.
https://ibb.co/FX3c6Qb
So is it possible to only apply the filter if the current user is a manager only? If it's just a regular user then don't apply the filter.
Thanks as always.