Forbid folder sharing

Hello,

Is there any way to forbid users share folders (allow share files only)? May be some workaround with “File access control” ?


Nextcloud version 12:
Operating system and version Ubuntu 16.04:
Apache 2.4.18:
PHP version 7.0: