Hide buttoncomponent in User Session screen

Hi,

I currently use cuba platform 6.8.7

I try to hide button (visible =false) in user session screen and I want to create other button , it look like work in studio , but after deploy the project, the button still appear

Is there a way to hide this button ?

Hi,

  1. If you extended the UserSession browser, you can set visible="false" for this button’s action:
<groupTable id="sessionsTable">
    <actions>
        <action id="message"
                visible="false"/>
    </actions>
    <buttonsPanel>
        <button id="button"
                caption="My new button"/>
    </buttonsPanel>
</groupTable>
  1. The better solution is using Roles: on the UI tab of Roles editor find the sec$UserSessionEntity.browse screen and set hide for the button you want to hide (for example, sessionsTableMessageBtn).

Yes ,finally I use set by role approach to hide button

Thanks for support!