Disable sharing entirely in community edition

How do you disable sharing entirely in the community edition? Is it possible? I know the Pro edition has more options around sharing.

There is no settings or switch to do it.

What you can do is to disable the sharing link in the web interface (using CSS or changing Seahub’s code.) But this does not remove the users’ permission to share. They still can by using the API or a client.