[Solved] Search working in preview but not live

Hey i have a dynamic page with a search and a table.
This is the code thats called when the Search is updated:

function update_filter(input) {
$w(‘#gegner’).setFilter(wixData.filter()
.eq(‘clan’, $w(‘#clan’).getCurrentItem()._id)
.contains(‘gegner’, input));
update_addButton();
}

In Preview everything works fine, on live it just ignores my .eq statement and filters only by the search input, not the dynamic page item

Whats the problem?

Hi,

Probably a permission issue.
Please check your database permissions, and see here .

Liran.

Hey Liran,
thank you for the fast support, somehow read permission was admin only for that collection. Works like a charm now :slight_smile: