diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-05-23 18:26:23 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-07-03 09:28:56 +0200 |
commit | df303b910a3f4f7e836f9ab7630426a25456e77a (patch) | |
tree | bd94e629be3d5bff1c678a540dc0393924553e61 /apps/files_sharing/api | |
parent | f70791653cefc40f640e48dcad489237b750d85c (diff) | |
download | nextcloud-server-df303b910a3f4f7e836f9ab7630426a25456e77a.tar.gz nextcloud-server-df303b910a3f4f7e836f9ab7630426a25456e77a.zip |
Allow sharing with type remote share
Diffstat (limited to 'apps/files_sharing/api')
-rw-r--r-- | apps/files_sharing/api/local.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/api/local.php b/apps/files_sharing/api/local.php index 84a789f26e4..1a943891691 100644 --- a/apps/files_sharing/api/local.php +++ b/apps/files_sharing/api/local.php @@ -270,9 +270,9 @@ class Local { $shareType = isset($_POST['shareType']) ? (int)$_POST['shareType'] : null; switch($shareType) { + case \OCP\Share::SHARE_TYPE_REMOTE: + $shareWith = rtrim($shareWith, '/'); case \OCP\Share::SHARE_TYPE_USER: - $permissions = isset($_POST['permissions']) ? (int)$_POST['permissions'] : 31; - break; case \OCP\Share::SHARE_TYPE_GROUP: $permissions = isset($_POST['permissions']) ? (int)$_POST['permissions'] : 31; break; |