aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2016-07-20 15:24:51 +0200
committerBjoern Schiessle <bjoern@schiessle.org>2016-07-20 15:24:51 +0200
commit77d2338bd2099333f09a647f3045614cd3e74418 (patch)
treeaaaf51eade8e48dcba8c74b304d70361b7e0841a
parent78e0bdc0039eece36daa32ba124d62577b3659a2 (diff)
downloadnextcloud-server-77d2338bd2099333f09a647f3045614cd3e74418.tar.gz
nextcloud-server-77d2338bd2099333f09a647f3045614cd3e74418.zip
only show additional edit permissions for folders
-rw-r--r--core/js/sharedialogshareelistview.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/js/sharedialogshareelistview.js b/core/js/sharedialogshareelistview.js
index 85dee978987..d156d30cecd 100644
--- a/core/js/sharedialogshareelistview.js
+++ b/core/js/sharedialogshareelistview.js
@@ -38,7 +38,9 @@
'<span class="shareOption">' +
'<input id="canEdit-{{cid}}-{{shareWith}}" type="checkbox" name="edit" class="permissions checkbox" {{#if hasEditPermission}}checked="checked"{{/if}} />' +
'<label for="canEdit-{{cid}}-{{shareWith}}">{{canEditLabel}}</label>' +
+ '{{#if isFolder}}' +
'<a href="#" class="showCruds"><img alt="{{crudsLabel}}" src="{{triangleSImage}}"/></a>' +
+ '{{/if}}' +
'</span>' +
'{{/if}}' +
'<div class="cruds hidden">' +
@@ -162,7 +164,8 @@
sharePermission: OC.PERMISSION_SHARE,
createPermission: OC.PERMISSION_CREATE,
updatePermission: OC.PERMISSION_UPDATE,
- deletePermission: OC.PERMISSION_DELETE
+ deletePermission: OC.PERMISSION_DELETE,
+ isFolder: this.model.isFolder()
};
if(!this.model.hasUserShares()) {