diff options
author | Björn Schießle <bjoern@schiessle.org> | 2016-11-28 12:41:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-28 12:41:06 +0100 |
commit | 43aeab9b926b441ead8992eeb458f9b374455224 (patch) | |
tree | 8e87451a676c389365f20b21b5ad36fc298d2eaf | |
parent | e8764e53bae327385eaa3ff06d5a947f783c7355 (diff) | |
parent | e5c31b72e17015283b75f75b641cf542827ec66c (diff) | |
download | nextcloud-server-43aeab9b926b441ead8992eeb458f9b374455224.tar.gz nextcloud-server-43aeab9b926b441ead8992eeb458f9b374455224.zip |
Merge pull request #2336 from nextcloud/fix-share-by-mail-permissions
bring back permissions for mail shares
-rw-r--r-- | apps/files/css/files.css | 1 | ||||
-rw-r--r-- | core/js/sharedialogshareelistview.js | 14 |
2 files changed, 7 insertions, 8 deletions
diff --git a/apps/files/css/files.css b/apps/files/css/files.css index 1983d51809c..96b883bbc62 100644 --- a/apps/files/css/files.css +++ b/apps/files/css/files.css @@ -547,6 +547,7 @@ html.ie8 #fileList tr.selected td.filename>.selectCheckBox { .bubble, #app-navigation .app-navigation-entry-menu { border-top-right-radius: 3px; + min-width: 100px; } .bubble:after, #app-navigation .app-navigation-entry-menu:after { diff --git a/core/js/sharedialogshareelistview.js b/core/js/sharedialogshareelistview.js index 96bbf94fa1c..89368955a38 100644 --- a/core/js/sharedialogshareelistview.js +++ b/core/js/sharedialogshareelistview.js @@ -34,7 +34,6 @@ '</span>' + '{{/unless}}' + '{{/if}}' + - '{{#unless isMailShare}}' + '<a href="#"><span class="icon icon-more"></span></a>' + '<div class="popovermenu bubble hidden menu">' + '<ul>' + @@ -47,37 +46,36 @@ '</li>' + '{{/unless}} {{/if}} {{/if}}' + '{{#if isFolder}}' + - '{{#if createPermissionPossible}}' + + '{{#if createPermissionPossible}}{{#unless isMailShare}}' + '<li>' + '<span class="shareOption">' + '<input id="canCreate-{{cid}}-{{shareWith}}" type="checkbox" name="create" class="permissions checkbox" {{#if hasCreatePermission}}checked="checked"{{/if}} data-permissions="{{createPermission}}"/>' + '<label for="canCreate-{{cid}}-{{shareWith}}">{{createPermissionLabel}}</label>' + '</span>' + '</li>' + - '{{/if}}' + - '{{#if updatePermissionPossible}}' + + '{{/unless}}{{/if}}' + + '{{#if updatePermissionPossible}}{{#unless isMailShare}}' + '<li>' + '<span class="shareOption">' + '<input id="canUpdate-{{cid}}-{{shareWith}}" type="checkbox" name="update" class="permissions checkbox" {{#if hasUpdatePermission}}checked="checked"{{/if}} data-permissions="{{updatePermission}}"/>' + '<label for="canUpdate-{{cid}}-{{shareWith}}">{{updatePermissionLabel}}</label>' + '</span>' + '</li>' + - '{{/if}}' + - '{{#if deletePermissionPossible}}' + + '{{/unless}}{{/if}}' + + '{{#if deletePermissionPossible}}{{#unless isMailShare}}' + '<li>' + '<span class="shareOption">' + '<input id="canDelete-{{cid}}-{{shareWith}}" type="checkbox" name="delete" class="permissions checkbox" {{#if hasDeletePermission}}checked="checked"{{/if}} data-permissions="{{deletePermission}}"/>' + '<label for="canDelete-{{cid}}-{{shareWith}}">{{deletePermissionLabel}}</label>' + '</span>' + '</li>' + - '{{/if}}' + + '{{/unless}}{{/if}}' + '{{/if}}' + '<li>' + '<a href="#" class="unshare"><span class="icon-loading-small hidden"></span><span class="icon icon-delete"></span><span>{{unshareLabel}}</span></a>' + '</li>' + '</ul>' + '</div>' + - '{{/unless}}' + '</span>' + '</li>' + '{{/each}}' + |