Move data directory permission checks after data directory existence checks
Move permissions check to new function checkDataDirectoryPermissions()
Merge branch 'master' into move-datadirectory-checks
Merge pull request #1171 from owncloud/move-datadirectory-checks

Move data directory permission checks after data directory existence checks