Enhancement: Don't query private links if disabled on the server

https://github.com/owncloud/client/issues/8998
https://github.com/owncloud/client/pull/9840
https://github.com/owncloud/client/pull/9964
