How to control table access in Lightadmin?

363 Views Asked by At

I'm building a back-office application using Spring Boot and Lightadmin. I'd like to limit creation/editing/deletion for some tables (maybe by obscuring respective buttons). Is there a Java configuration to achieve this?

1

There are 1 best solutions below

0
On

For any table that you want to administer in the dashboard, you need to explicitly define a (configuration) class which extends AdministrationConfiguration.

See example here

If you don't extend the class for your table, it will not show up in the dashboard.