[5.8] How to hide create user button in admin panel

Bauke_Roo
Star Contributor
Star Contributor

Hi there,

I'm trying to hide the createUser button in the adminpanel (we are creating users using a custom API call)

I know some buttons (like tabs, and the import button) can be filtered using extensionpoints But I couldn't find one for the createUser button.

Is there a way to do this for the createUser button to?

Thanks in advance, Bauke Roo

2 REPLIES 2

Not applicable

Hi,

The createUser button is not defined as an action (so not possible to disable it in a contribution) but as a subview in a XHTML template. The name of the template is user_views.xhtml. You can override this template by removing the inclusion of the subview create_user.xhtml.

Bauke_Roo
Star Contributor
Star Contributor

Hi Gildas,