summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/js
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-07-03 09:31:40 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-07-03 09:31:40 +0200
commit9da10788bc8bd21c17d953c8ae152c3a551cf3bc (patch)
tree7f1fa5b744ebc890c2a439e9f5b146b49a5480d8 /apps/files_sharing/js
parentf70791653cefc40f640e48dcad489237b750d85c (diff)
parent71ae96bb56c668e8bc587e89ce9cf55e22fe7455 (diff)
downloadnextcloud-server-9da10788bc8bd21c17d953c8ae152c3a551cf3bc.tar.gz
nextcloud-server-9da10788bc8bd21c17d953c8ae152c3a551cf3bc.zip
Merge pull request #17349 from owncloud/share-onlyshowstaticownerifavailable
Do not show static share owner if not available
Diffstat (limited to 'apps/files_sharing/js')
-rw-r--r--apps/files_sharing/js/share.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/js/share.js b/apps/files_sharing/js/share.js
index c754ebdbae9..e7823454c53 100644
--- a/apps/files_sharing/js/share.js
+++ b/apps/files_sharing/js/share.js
@@ -155,7 +155,7 @@
var permissions = $tr.data('permissions');
var hasLink = !!(shareStatus && shareStatus.link);
OC.Share.markFileAsShared($tr, true, hasLink);
- if ((permissions & OC.PERMISSION_SHARE) === 0) {
+ if ((permissions & OC.PERMISSION_SHARE) === 0 && $tr.attr('data-share-owner')) {
// if no share action exists because the admin disabled sharing for this user
// we create a share notification action to inform the user about files
// shared with him otherwise we just update the existing share action.