Check resharing setting

This was commited to stable45 a long time ago and never made it to master. I had some issues with whitespace differences earlier, but whitespace seems to be fine now. In stable45: https://github.com/owncloud/core/pull/349