summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/appinfo/update.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-01-21 11:32:30 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2014-01-21 11:32:30 +0100
commit23a4d0d44ef8b918f054e7ad608d04b2e9a68995 (patch)
tree97e921688f32f8b5a707e4d81d5486d9793a3558 /apps/files_sharing/appinfo/update.php
parent0f794b6889d05508c86449dacdee3e05bd47d071 (diff)
downloadnextcloud-server-23a4d0d44ef8b918f054e7ad608d04b2e9a68995.tar.gz
nextcloud-server-23a4d0d44ef8b918f054e7ad608d04b2e9a68995.zip
OC_Util::setupFS($user) will create a data dir for the given string - no matter if the user really exists - OCP\JSON::checkUserExists($owner); introduces a ready to use check which will bail out with an JSON error
Diffstat (limited to 'apps/files_sharing/appinfo/update.php')
-rw-r--r--apps/files_sharing/appinfo/update.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files_sharing/appinfo/update.php b/apps/files_sharing/appinfo/update.php
index 0d827da28ea..4b716e764f4 100644
--- a/apps/files_sharing/appinfo/update.php
+++ b/apps/files_sharing/appinfo/update.php
@@ -44,6 +44,7 @@ if (version_compare($installedVersion, '0.3', '<')) {
$shareType = OCP\Share::SHARE_TYPE_USER;
$shareWith = $row['uid_shared_with'];
}
+ OCP\JSON::checkUserExists($row['uid_owner']);
OC_User::setUserId($row['uid_owner']);
//we need to setup the filesystem for the user, otherwise OC_FileSystem::getRoot will fail and break
OC_Util::setupFS($row['uid_owner']);