#Hide workflows for specific users in Preferences component

1 messages · Page 1 of 1 (latest)

unreal otter
#

Hello!
Is there any way to hide a workflow for specific users?
Let's say I have two workflows "workflow A" and "workflow B" and a user with a specific property (in this case the subscription plan on our project) should be able to see only workflow A or workflow B in the Preferences component based on the subscription plan he has.

We also check for the subscription plan in the execution of the flow, so I could hide the workflow just VISUALLY and that would be fine.

Thanks a lot!
G.

torpid epoch
unreal otter
torpid epoch
#

Where would you most expect to see this information on the docs (page or section)?

unreal otter
#

I guess I was looking for it in the Workflow page of the docs or in the "Preferences" page inside the Inbox section

torpid epoch
#

thanks for the feedback! Going to update this

torpid epoch
unreal otter
#

That's great, thanks!!

unborn edgeBOT
#

@unreal otter, you just advanced to level 1!

unreal otter
#

Sorry @torpid epoch do I have to set the property preferencesFilter in the Inbox component even If I'm separating the Preferences from the Inbox? I tried conditionally like this:

    <>
      {subscriberId && (
        <Inbox 
        subscriberId={subscriberId} 
        applicationIdentifier={import.meta.env.VITE_NOVU_APP_ID} 
        routerPush={(path: string) => router.push(path)}
        preferencesFilter={{ tags: hasReputation ? ['reputation_basic'] : hasReputationPro ? ['reputation_pro'] : ['test_push'] }}
        >
          <Preferences />
        </Inbox>
      )}
    </>
  );````

But I can still see all the workflows (even the one with tags not specified in the filter).
torpid epoch
#

Hi @unreal otter let me try to replicate this locally

torpid epoch
#

Seems like an issue on our end, team is checkign this

unreal otter
loud hollow
#

@unreal otter

Our team is working on fix

torpid epoch
#

@unreal otter a fix was deployed to our cloud instance, could you please re-try this?