What is the user access required to let user read session attribute?
I am getting the following exception when the user doesn’t have full-access.
java.lang.IllegalStateException: No results
at io.jmix.core.FluentLoader$ById.one(FluentLoader.java:284)
at com.myapp.crm.view.salesopportunity.SalesOpportunityDetailView.onBeforeShow(SalesOpportunityDetailView.java:67)
at com.vaadin.flow.component.ComponentEventBus.fireEventForListener(ComponentEventBus.java:233)
at com.vaadin.flow.component.ComponentEventBus.fireEvent(ComponentEventBus.java:222)
at com.vaadin.flow.component.Component.fireEvent(Component.java:394)
at io.jmix.flowui.view.View.beforeEnter(View.java:101)
at io.jmix.flowui.view.StandardDetailView.beforeEnter(StandardDetailView.java:157)
Here is where the above exception is coming from:
UUID id = (UUID) sessionData.getAttribute("companyId");
Apart from access to the view/entity roles, this user has access to “flowui-minimal”, “flowui-filter”. “datatools-entity-info” roles. What role is missing so it is unable to read session data?