Role Filtering isnt working

Hi.

Kindly note that t his( currentUser.role ) property has been deprecated. Use the getRoles() function instead.

You should also note that these APIs in wix-users are only partially functional when previewing your site. View a published version of your site to see their complete functionality. Refer to our API by clicking the respective links above to learn more.

Good luck!