Query block "user role" did not work when turnon on "frontend rendering"

query block with frontend rendering turned on , user role( Role option),
did not work after you open the page.(without frontend rendering, working perfect)

my testing site user have different roles,
when i choose different roles here, and turn on frontend rendering,
at backend(cwicly editor), i can see the dynamic result is correct.
but after you you open the page on frontend,
you will find the user role(role option), did not filter its option value.

would suggest you take a look the author report with this together:

Query Woocommerce Products by Author - Feature Requests - Cwicly

hopefully, can find some thing useful.

ok, let me make it more clear, hope it will be useful: my site users have different roles,

i need list users out by two parameter:

  1. by specific user role (in cwicly query editor Role option)

  2. filter user by location (ACF user_city field, work with cwicly filter block)


when turn on the frontend render and choose specific user role(purple A below), the role option(purple A below) did not work, because they list all the user out . location filter block working very well.

If turn off the frontend render, it can list user out by user role(purple A above) correctly.
but of course, since the frontend render was turned off , the filter block can not work.

Hi @qiang814k,

As with filtering post status, with frontend rendering enabled we don’t currently allow users to filter the user role, as it could pose a security issue.

Our dev team is planning to review frontend rendering, to see if offering these capabilities would be possible, while maintaining a high level of security.

Thank you for your understanding.

ok . thanks for the answer. Araminta, @Araminta
i can make an Acf filed to filter users for alternative.

but i need to report another issue when query user in testing :

  1. query user (work with filter block )

  2. each user have a acf image filed(which can show up a jepg photo)

  3. when turn on frontend rendering, and this page link this image can not show out(like below)


    if i turn off frontend render, the photo can show up correctly.

Hi @qiang814k,

If you haven’t already done so, it may be worth checking the following:

thanks a lot for you help, my friend, very appreciate

i double checked ,this ACF filed group API REST was turned on.