summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/controllers/sharecontroller.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-12-15 13:18:04 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-12-15 13:18:04 +0100
commit67263ef8b4b01ccf014ebffd48a3deab466878cf (patch)
treec2cd09969eb919eff435c28d204d0c9e5f055590 /apps/files_sharing/lib/controllers/sharecontroller.php
parentde813c1025e72bef2633654f2fb77b4d5da72d05 (diff)
parent1d37e7abfc8316be8f197eb250d04fbf80299a72 (diff)
downloadnextcloud-server-67263ef8b4b01ccf014ebffd48a3deab466878cf.tar.gz
nextcloud-server-67263ef8b4b01ccf014ebffd48a3deab466878cf.zip
Merge pull request #21067 from owncloud/fix_20296
don't allow to create a federated share if source and target are the same
Diffstat (limited to 'apps/files_sharing/lib/controllers/sharecontroller.php')
-rw-r--r--apps/files_sharing/lib/controllers/sharecontroller.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/controllers/sharecontroller.php b/apps/files_sharing/lib/controllers/sharecontroller.php
index fe7b159449c..e28019c358c 100644
--- a/apps/files_sharing/lib/controllers/sharecontroller.php
+++ b/apps/files_sharing/lib/controllers/sharecontroller.php
@@ -181,6 +181,7 @@ class ShareController extends Controller {
$shareTmpl = [];
$shareTmpl['displayName'] = User::getDisplayName($shareOwner);
+ $shareTmpl['owner'] = $shareOwner;
$shareTmpl['filename'] = $file;
$shareTmpl['directory_path'] = $linkItem['file_target'];
$shareTmpl['mimetype'] = Filesystem::getMimeType($originalSharePath);