summaryrefslogtreecommitdiffstats
path: root/apps/files_external/3rdparty
diff options
context:
space:
mode:
authorRobin McCorkell <rmccorkell@karoshi.org.uk>2014-04-21 21:41:45 +0100
committerRobin McCorkell <rmccorkell@karoshi.org.uk>2014-04-21 21:42:35 +0100
commitabfd7ecb72732cf7cea3ae84cbe3013bb079fccb (patch)
treeffd597476c87d371c707444fbcc025750595fa0c /apps/files_external/3rdparty
parentee70eb0808809abe5fe8b58a6b730db8a7ce997f (diff)
downloadnextcloud-server-abfd7ecb72732cf7cea3ae84cbe3013bb079fccb.tar.gz
nextcloud-server-abfd7ecb72732cf7cea3ae84cbe3013bb079fccb.zip
Permit personal mount points to be used for sharing
An issue existed where `readData` used `OCP\User::getUser()` to get the user for personal mount points, which worked in all situations apart from when a personal mount point was used for sharing, so the return from `getUser()` is not the user that owns the share. As such, any personal mount points would not work correctly when shared. `readData` and `writeData` have been changed from using a `$isPersonal` boolean to using a `$user` string|null. `$isPersonal = false` can now be written as `$user = NULL` (or left out in the case of `readData`), and `$isPersonal = true` can be written as `$user = OCP\User::getUser()`.
Diffstat (limited to 'apps/files_external/3rdparty')
0 files changed, 0 insertions, 0 deletions