How to impede or prevent more groups to see the results

hi again,
do you know how to impede or prevent more groups to see the results. for example i do not want both group not to reach in the following one. but hidding and disable do not work when i add another group

{{current_user.groups.map(eachGroup => eachGroup.name).includes('groupA') || current_user.groups.map(eachGroup => eachGroup.name).includes('groupB')}}
1 Like

Hi @halil :wave:

What have you tried to test this so far? It looks like it should work from what I'm seeing.

Here's another approach to achieve the same thing if you find it helpful!
{{current_user.groups.map(eachGroup => eachGroup.name).some(name => name === 'groupA' || name === 'groupB')}}

1 Like

many thanks Abbey for your response,
at the beginning it did not work, what i shared. but it works now.

1 Like

Happy to hear! :slight_smile:

1 Like