Public Mailboxes - Hide for Unassigned Users?

I tried to set permissions for public mailboxes on server side with doveadm but without success, sogo still shows the folders.

Users are able to subscribe but if they have no permissions they can’t use shared folder anyway.