Excluding single files from sharing function

I’d like to see a function which disables the sharing function for all users. On all files owned by a user, on specific files uploaded by a user aso.
So every owner of the files can disable the sharing link function of his files… - so for example, all users in a company, with a seafile account can access, but it can’t be shared publicly via links…

This is what role based permission control is designed for in Seafile pro edition: https://manual.seafile.com/deploy_pro/roles_permissions.html