@rysiekpl please take a look at https://github.com/owncloud/core/pull/7725 for a new means of detecting public access.