DashboardViewAssistant bean not listening

Hi all,
I created a business logic dashboard view assistant for my dashboard. I followed the documentation (Adding Business Logic :: Jmix Documentation). However, I can see that it is not been listened to. What else do I need to do?

What I desire from this is to hide certain widgets for a certain login. I thought the dashboard view assistant would be of help. Please advise what is the best way to do this apart from the business logic assistant.

Thanks

See the code below:

@Component("spm_DashboardDisplay")
@Scope("prototype")
public class DashboardDisplay implements DashboardViewAssistant {
    protected Dashboard dashboard;

    @Override
    public void init(Dashboard dashboard) {
        this.dashboard = dashboard;
    }

    @EventListener
    public void dashboardEventListener(DashboardUpdatedEvent event){
        ScreenFragment widget = dashboard.getWidget("RfqListWidget");
        if (widget instanceof RfqListWidget){
            RfqListWidget rfqListWidget = (RfqListWidget) widget;
            rfqListWidget.hideWidget();
        }
    }
}

Hello,

Make sure you set the assistant bean and period.

image

Regards,
Nikita

Thanks