Use the permissions exposed by ownCloud for webdav external storages

Use the correct permissions if we expose them

Needed for #8399 

cc @DeepDiver1975 @PVince81