Open cerealcoder opened 2 months ago
Hey @cerealcoder. We filter using user IDs rather than emails. You just need to update the binding to use {{ Current User._id }}
instead, and it'll work as expected.
On another note, you don't need to use a data provider with a repeater block. Blocks can fetch data directly, so just update your repeater block to pull data from the table itself instead of from a data provider. This will also enable proper server side filtering (rather than client side, which happens if you use a data provider with a block).
Hosting
Describe the bug My goal is to use a filter in a repeater block to select rows from a column for which the current user is "authorized". In this case, authorization is achieved by adding the current user's email address to a column in a data table. The filter works correctly when, at design time, I specify a literal value. But when I change the literal value to a binding (the current user's email address), the filter returns an empty data set.
To Reproduce
Multi user
Multi user
column, (b) the option isContains
, (c) the option isBinding
, and (d) the value is{{ Current User.email }}
Value
, and (b) the value is a literal string that matches the current user's email address (via a picker provided by the cloud IDE)Expected behavior The filter should be able to utilize
Current user.email
instead of a literal value.App Export stardustadmin-export-1724966474225.tar.gz
Customers
companies
CustomerRepeaterBlock
Desktop (please complete the following information):