Skip to Content
0
Former Member
Nov 04, 2015 at 06:34 AM

Search restriction on based on a custom created attribute of user

676 Views

Hi,

I have a requirement in which a product manager (user) is able so view products of a particular brand only, I created a new attribute called brand for itemtype user. The query I've made for this search restriction is:

{brand} IN ({{select {pk} from {BrandLabel} where {code} = (?session.user.brand)}}) where BrandLabel contains the list of brand names.

This query is not working for me.